Skip to content

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

Open
JustasMonkev wants to merge 1 commit into
mobile-next:mainfrom
JustasMonkev:fix/is-visible-rethrow-driver-errors
Open

fix(locator): do not swallow driver errors in isVisible#138
JustasMonkev wants to merge 1 commit into
mobile-next:mainfrom
JustasMonkev:fix/is-visible-rethrow-driver-errors

Conversation

@JustasMonkev
Copy link
Copy Markdown

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.

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.

1 participant