-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Focus the AUT before actions #196
Comments
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that for the majority of use cases (if not for all of them, maybe except tabbing) it makes sense to focus the AUT - without that some commands might not work properly.
I'm implementing global keyboard commands in our app so I want to use smth like to prepare the app for the assertion:
However, this won't work because the AUT is not focused so my keyboard listener that lives in it has no chance of receiving this input.
I've tried this:
but it doesn't work even though after this we get:
I've worked around my issue with:
but it feels that it could work "out of the box". I'm not entirely sure what exact command would be best to shift focus properly to the AUT before performing an action since a real click is not good in the sense that it could invoke some other, unrelated, stuff in the AUT.
The text was updated successfully, but these errors were encountered: