-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Dismiss keyboard on iOS sometimes fails #65
Comments
The existing code is the same as |
A better approach is probably to find the textfield on screen, and then tap to the left or right of it. |
|
Swipe will fail if it starts in the boundary of the active textfield. mobile :swipe, startX: 0.5, endX: 0.5, startY: 0.2, endY: 0.8 seems to work well. Flicking inside the keyboard types keys and doesn't dismiss. execute_script %(au.mainApp.keyboard().flickInsideWithOptions({startOffset: {x:0.5, y:0.2}, endOffset: {x:0.5, y:0.8}})) # Origin is upper left hand point
execute_script %(au.mainApp.keyboard().rect())
{"origin"=>{"x"=>0, "y"=>264}, "size"=>{"width"=>320, "height"=>216}}
execute_script %(au.mainApp.keyboard().hitpoint())
=> {"x"=>160, "y"=>372}
|
au.lookup('window')[0].tap();
toggles "Select, Select All, Paste" instead of dismissing the keyboard in some situations.The text was updated successfully, but these errors were encountered: