-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Modifier click or keyDown support? #82
Comments
Thanks for submitting this, I'll add it to the list. |
since v0.4.9 you can use the |
Awesome thanks! |
how do we trigger ctrl space from that keys event. Thank you. |
@ramanamatya Hey! Did you find a way to test ctrl+ some other action with nightwatch? |
@chin2km I Landed on this issue while encountering the same problem. I guess you can use |
There doesn't seem to be a way to hold down a modifier key(Shift, Ctrl, Cmd etc.) and initiate a click. I'm actually not sure if there is a way to implement this using the WebDriverJS API either.
Ideally it would be possible to hold down a modifier key, then do an action, then release the key. For example:
Which is like the implementation for a Ruby Webdriver stack seen here:
http://watirwebdriver.com/sending-special-keys/
The closest approximation I could find for this action is through the elementIdValue JsonWireProtocol call. Several keystrokes can be sent together but there is always a NULL appended to the input. So any modifier keys that are held down during the input are reset to the keyUp state when the call terminates. So this doesn't allow for any clicks to be input with a modifier key being held down.
Maybe I'm just missing something.
The text was updated successfully, but these errors were encountered: