-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Element SendKeys does not send keydown/keyup events for shift key when sending "shifted" keystrokes #646
Comments
Maybe this is indirectly related to a #645, in that they both rely on testing/marionette/event.js for synthesizing interaction and DOM events. We could either not be picking up the right “magic Unicode character” for the shifted state, or we are failing to set the shifted modifier state when we call event.js. |
Same issue reproduced in a test case here |
hi, my good great developers . could someone tell me a workaround to fix this issue ? |
@andreastt , hi , wonderful developer, could you please give some idea ? |
Still here on year after !!! Complete test case to reproduce is available here |
As it looks like this issue has been forgotten because no Marionette bug has been filed but it was just tagged here. Before I file a bug let me ask a question. @jimevans could you please try if it works when you use actions to perform such a step? If yes, then we have covered that via https://bugzilla.mozilla.org/show_bug.cgi?id=1418995. |
VS 2017 , Selenium v 3.12.1 ,C# , Firefox V 60.0.2 , Chrome V 66 , Nunit v3.10.1 , Gecko Driver v 20.1 , chrome driver v 2.4 I tried to find solution for Firefox but did not get success : Below commands are NOT working: driver.FindElement(By.CssSelector("body")).SendKeys(Keys.F12); Actions action = new Actions(driver); action.SendKeys(Keys.F12); action.Perform(); Actions action = new Actions(driver); action .KeyDown(Keys.Control).SendKeys(Keys.F12).KeyUp(Keys.Control).Perform(); Actions action = new Actions(driver); action.SendKeys(Keys.F12); action.Click(); |
@java123code your problem is totally unrelated here given that the key you are trying to send does not contain a shift modifier. Also if you expect that |
@whimboo It still does not work. There's a python test to cover this as well here: https://github.com/SeleniumHQ/selenium/blob/master/py/test/selenium/webdriver/common/w3c_interaction_tests.py#L39 |
@lmtierney, yes we know. this problem is actually covered by https://bugzilla.mozilla.org/show_bug.cgi?id=1255260. |
Just responding for jim :) |
In order to help us efficiently investigate your issue, please provide the following information:
Firefox Version
55.0a1 (2017-04-12) (32-bit)
geckodriver as of commit 15345b6
Platform
Windows
Steps to reproduce
Execute the following code using the Selenium .NET bindings (exact W3C WebDriver protocol commands are included as comments):
Expect: The result element to include a record of the keyUp event for the shift key.
Result: The shift key is not represented in the key events propagated to the element.
The text was updated successfully, but these errors were encountered: