diff --git a/lib/api/web-element/scoped-element.js b/lib/api/web-element/scoped-element.js index fcf4da3ea..52ac03e4e 100644 --- a/lib/api/web-element/scoped-element.js +++ b/lib/api/web-element/scoped-element.js @@ -160,9 +160,9 @@ class ScopedWebElement { const parentElement = args[0]; // Check if parentElement is valid or not. - if (parentElement && parentElement.webElement){ + if (parentElement && parentElement.webElement) { const parent = await parentElement.webElement; - if (parent === null){ + if (parent === null) { // The parent was of type WebElement but was not resolved. // Supress further errors from find element commands. suppressNotFoundErrors = true;