Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
dikwickley committed Mar 12, 2024
1 parent b29af2e commit 76eafd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/web-element/scoped-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76eafd9

Please sign in to comment.