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
Keys are not working with webdriverIO #1344
Comments
@kedunuru have you tried to use it that way
|
yeah i tried that as well :) |
This is probably Selenium related. |
I have tried one more time using |
@kedunuru can you post you selenium version and sample code please. |
Keys is working fine for me (4.0.9) with selenium 2.53 and chrome, and several browsers on saucelabs which still uses 2.48. The following package will install selenium and chrome driver for you. Perhaps you have some version incompatibilities with selenium and chrome driver? If that doest work you'll probably need to be more specific about your setup |
I have partly the same issue
i've tried
however, simple keys are sent, i. e.
|
@lladrona try Command instead of Control or Meta maybe. This is usually not an issue with WebdriverIO but the browser driver. |
@christian-bromann i've tried both command and control, nothing changes
we have tests written in java, and their SendKeys ends up like
is this still browser driver issue and could this be the problem? |
I can confirm the problem. It does not depend on the version of the Selenium or WebDriver. |
I am able to use |
@jeffmanhart AFAIK Safari does not support edit |
chrome driver: 2.21.2 I had issues sending key combinations with modifiers, too.
Another gotcha I had, was that the character type keys on https://w3c.github.io/webdriver/webdriver-spec.html#h-keyboard-actions (which was linked in the docs), are not identical to those that webdriverio is using. They have to match exactly in case to work. And update to the docs and maybe an example on how to use key combinations with modifiers would be helpful. |
@bekite this got updated |
... and released. If some keys aren't working in some browser is probably an issue of the driver. Closing. |
seems firefox webdriver doesn't support this api |
@gogoyqj you are right |
Any updates on ff driver having a fix? |
It won't as this command is not part of the WebDriver protocol |
@christian-bromann I see that is deprecated, what command will replace 'keys'? |
Keyboard actions: https://www.w3.org/TR/webdriver/#keyboard-actions |
So... how do we use those "Keyboard Actions" from webdriver.io? The keys() method doesn't seem to use that and I don't see any other options. |
This worked for me, in FF, to click Return: https://sqa.stackexchange.com/a/27860/32461:
that is, appendnig (but no answers on the StackOverflow page linked just above worked, in FF) |
Hi there I'm trying to work Option+Command+W key to work but its not working can someone help me here as client.keys(['Option, 'Command', 'W']); |
Keys are not working with webdriverIO ....
I am trying to use keys to simulate command+i
None of the options are working....
driver.keys(['\uE03D', '\u0049']);
driver.keys(['meta','i']);
Environment
when I read in forums, there was a indication that it is an issue with chrome driver, is this resolved or is it still an issue?
Thanks,
Veni
The text was updated successfully, but these errors were encountered: