Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dikwickley committed Aug 1, 2024
1 parent 76eafd9 commit 7e19346
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/api/web-element/scoped-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,8 @@ class ScopedWebElement {

const parentElement = args[0];

// Check if parentElement is valid or not.
if (parentElement && parentElement.webElement) {
const parent = await parentElement.webElement;
if (parent === null) {
// The parent was of type WebElement but was not resolved.
// Supress further errors from find element commands.
suppressNotFoundErrors = true;
}
if (parentElement?.webElement && await parentElement.webElement === null) {
return null;
}

try {
Expand Down

0 comments on commit 7e19346

Please sign in to comment.