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
Multiple keys in sendKeys action #56
Comments
As @ryanzec has the most experience with this, I´m happily delegating the question ;) |
I don't think this is an issue with DalekJS. \e0050 is the code for a capital P and Could you give the code you are using to trigger code execution with certain keys being pressed? |
Here's full test with
But when I manually press |
@pepelsbey I have tested the cmd alt p my my Mac locally and the test works properly, are you on a Mac or PC? If you are on a PC, maybe there is something with Windows causing the issue. I would need a full example (the actually code with the tests) with the test failing but the code working to further investigate this since the example I have created works properly. |
I'm on Mac (with latest everything: OS, Node.js, DalekJS, etc.) and testing it using default PhantomJS. |
@pepelsbey Try testing with Chrome (that is what I have been using), might be an issue with PhantomJS. |
Here's my output
|
Yep, works fine with |
In case this is useful to anyone else, I've written a small NPM module unicode-keymap to return a key code reference map based on the W3C WebDriver Spec. Example usage:
|
I'm trying to pass multiple keys
Cmd Alt P
at the same time to Dalek to test page behavior:And it seems doesn't work as test is failing. I'm using W3C WebDriver spec for key codes reference, but I haven't found clear description on how to send multiple keys (both in Dalek docs and spec), especially with regular, not special ones like Alt and Cmd.
The same test with just a
F5
works fine, of course:Cross-posted from StackOverflow
The text was updated successfully, but these errors were encountered: