-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview interaction - selecting correct element when Selector applies to multiple elements #663
Comments
Hi again :) You've hit quite an ugly corner case, which I also don't like. But before I start complaining on Android's crippled UI selectors in tests, please try with |
|
I'm happy that you solved it :)
No, not needed anymore. But if you had two |
@PiotrMitkowski I implemented this feature in #849 :) Screen.Recording.2023-01-30.at.12.23.04.AM.mov |
@bartekpacia wow, nice! You're doing a great job here, thanks 🙂 |
Android is done, iOS todo. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Let's assume the following login form:
![Zrzut ekranu 2022-12-5 o 13 02 44](https://user-images.githubusercontent.com/1737922/205632999-1feabd43-d24d-4540-9038-06ea8dc117d6.png)
My app opens it in a web view, and I want to put some login and password and tap the "Log in" button. I use the following code:
Entering the text works like a charm, but the
tap()
command selects the header above the fields instead of the button. I tried withclassName: 'button'
,'className: 'Button'
(inspired by the article on Medium), but it couldn't find such element. I also tried playing with theinstance
field, but I only gotIllegalArgumentException
with a message saying, thatinstance
isn't supported.Is there a way to select the button in such case?
The text was updated successfully, but these errors were encountered: