Skip to content
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

Element hidden by keyboard is still considered visible/clickable. #66

Open
sleekweasel opened this issue Jan 29, 2016 · 3 comments
Open

Comments

@sleekweasel
Copy link

So clicking on it causes a keyboard event (and the screen height doesn't change to show where the keyboard has reached).

@NickAb
Copy link
Contributor

NickAb commented Jan 30, 2016

To make it clear, do you know for sure from test flow that a keyboard will be visible at this moment? If so, you can use Back action to lose focus on element and hide keyboard.

The problem is similar to once we have with App Bar or Message Dialog popups we have. Basically this elements are not part of application window, but rather parts of shell, which are not nicely accessible. Will need some research.

A quick solution can be to port back OnScreenKeyboard.Disable for Winium.StoreApps (and the decision to split two version of drivers to speed up initial development comes back to haunt me).
This command simple hides on screen keyboard so that it does not infer with test runner. But it is not a good solution. It will work good for Windows 8.1 emulators, but on Windows 10 emulators key mapping was changed and it seems Microsoft dropped support for explicit hiding/showing keyboard, only toggling keyboard is available.

@sleekweasel
Copy link
Author

I do know from the flow that the keyboard is visible, and I did click back to hide it once I worked out why my click wasn't doing what I expected; it was just surprising that the element claimed to be visible but I ended up clicking keyboard buttons instead of what they concealed. :)

(Also frustrating that I couldn't detect how much of the screen was 'real' app as opposed to on-screen keyboard, but I understand that mightn't be available.)

@NickAb
Copy link
Contributor

NickAb commented Feb 11, 2016

Yes , understand, unfortunately we were not able to get reliable results using MS Automation API for element visibility, so we come up with some heuristics.I will look into it once I get time, maybe we can add some checks for keyboard or something.

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

No branches or pull requests

2 participants