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

SendKeys() does not only send keys but also click 'Done' #251

Closed
cavaIV opened this issue Apr 30, 2014 · 4 comments
Closed

SendKeys() does not only send keys but also click 'Done' #251

cavaIV opened this issue Apr 30, 2014 · 4 comments

Comments

@cavaIV
Copy link

cavaIV commented Apr 30, 2014

If I sendkeys() to write something into a textbox the ios driver automatically clicks keyboard Done afterwards instead of simply hiding the keyboard.

This sometimes causes unexpected page updates.

@julianhaslinger
Copy link

As for the Selenium API, the SendKeys method should only send keys to a web element. However, the ios-driver implementation seems to do a little bit more (clicks "Done"). This action should not be in the scope of the method SendKeys. In my opinion, you should leave this decision (whether or not "Done" should be clicked) to the users of the different Selenium implementations.

@freynaud
Copy link
Member

makes sense. Would you be happy with "clicks done by default, and default can be changed".
I you don't remove the keyboard after sendKeys by default, you have most script failing as they won't be able to interact with a page without removing the keyboard first.

@cavaIV
Copy link
Author

cavaIV commented May 14, 2014

Yeah clicking done by a changeable default would be nice

@azaytsev
Copy link
Contributor

A Capability has been added to allow a user to keep the keyboard on the screen after sendKeys() command has been issues. To show/hide keyboard the following capability can be used

IOSCapabilities caps = IOSCapabilities.iphone("Safari");
caps.setCapability(IOSCapabilities.SHOW_KEYBOARD_AFTER_CLICK_AND_TYPE, true);

The keyboard will be hidden by default unless that capability is set to true.

@mach6 mach6 closed this as completed Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants