Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dikwickley committed Aug 6, 2024
1 parent 0150339 commit 8c95d8c
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 8c95d8c

Please sign in to comment.