Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dikwickley committed Aug 12, 2024
1 parent 289dcf9 commit 66faef3
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 @@ -170,7 +170,7 @@ class ScopedWebElement {
const parentElement = args[0];

if (suppressNotFoundErrors) {
this.suppressNotFoundErrors = true;
this._suppressNotFoundErrors = true;
}

try {
Expand All @@ -180,7 +180,7 @@ class ScopedWebElement {

return await this.findElement({parentElement, selector: condition, index, timeout, retryInterval});
} catch (error) {
if (this.suppressNotFoundErrors) {
if (this._suppressNotFoundErrors) {
return null;
}

Expand Down

0 comments on commit 66faef3

Please sign in to comment.