-
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
Wrong events for modifier-click (Actions API) #888
Comments
@mjzffr Wasn’t https://bugzilla.mozilla.org/show_bug.cgi?id=1367430 supposed to have fixed this, or did that only patch key modifiers for input to keyboard devices? |
I think this is a problem with how the Selenium client constructs the payload for the actions endpoint. At the least, it's misleading to users of the API. The attached geckodriver.log shows that we receive the following: {"actions": [{"actions": [{"duration": 0, "type": "pause"},
{"duration": 100,
"origin": {"ELEMENT": "5d3e3dd0-9260-4e07-8553-2c1bb1e22ac9",
"element-6066-11e4-a52e-4f735466cecf": "5d3e3dd0-9260-4e07-8553-2c1bb1e22ac9"},
"type": "pointerMove",
"x": 0,
"y": 0},
{"button": 0, "type": "pointerDown"},
{"button": 0, "type": "pointerUp"}],
"id": "default mouse",
"parameters": {"pointerType": "mouse"},
"type": "pointer"},
{"actions": [{"type": "keyDown", "value": "\xee\x80\x89"},
{"type": "keyUp", "value": "\xee\x80\x89"}],
"id": "default keyboard",
"type": "key"}]} Marionette follows the spec and transposes this to actions-by-tick such that the first tick consists of:
The second tick is:
The third tick is:
The fourth tick is:
So the keyUp action is already complete by the time we get to the pointerDown. |
As I understand it this is a bug in the Selenium Java Binding. The The collection Should we file an issue for selenium? |
Please do file an issue against Selenium. I will keep this open for tracking, and thanks for reporting it! It will be good to track all the action sequence related issues down. |
Fixed in Selenium 3.5.3 |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue. |
System
Testcase
The following test case executes CONTROL-Click on a page which reports the triggered JS events.
The
ctrlKey
property of theclick
event (and others) is expected to be set but actually is not.This test uses the same test page regression test of this Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1367430
Test HTML page:
test_actions_wdspec.zip
Stacktrace
Trace-level log
geckodriver.zip
The text was updated successfully, but these errors were encountered: