Skip to content

fix(locator): do not swallow driver errors in isVisible#138

Merged
gmegidish merged 2 commits into
mobile-next:mainfrom
JustasMonkev:fix/is-visible-rethrow-driver-errors
May 21, 2026
Merged

fix(locator): do not swallow driver errors in isVisible#138
gmegidish merged 2 commits into
mobile-next:mainfrom
JustasMonkev:fix/is-visible-rethrow-driver-errors

Conversation

@JustasMonkev

Copy link
Copy Markdown
Contributor

Fixes Locator.isVisible() so it only returns false for expected locator lookup failures.

Previously, isVisible() caught every thrown error and returned false. That could hide real driver/session/device failures, for example if the device disconnected while reading the view hierarchy.

@gmegidish

Copy link
Copy Markdown
Member

@JustasMonkev can you please sign the commit? if that's a problem, I can re-create this change in a new branch and tag you as contrib.

@JustasMonkev

Copy link
Copy Markdown
Contributor Author

@JustasMonkev can you please sign the commit? if that's a problem, I can re-create this change in a new branch and tag you as contrib.

Sure I can do it

@JustasMonkev
JustasMonkev force-pushed the fix/is-visible-rethrow-driver-errors branch 2 times, most recently from 9507ac5 to 80505aa Compare May 21, 2026 15:28
@JustasMonkev
JustasMonkev force-pushed the fix/is-visible-rethrow-driver-errors branch from 80505aa to 1b761ad Compare May 21, 2026 15:33
@JustasMonkev

Copy link
Copy Markdown
Contributor Author

Done @gmegidish

@gmegidish
gmegidish merged commit 13691e1 into mobile-next:main May 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants