Skip to content

Commit

Permalink
fix charCode/keyCode for KeyPressEvent's when simulating Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Dec 12, 2021
1 parent 400ddab commit 215355f
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,12 @@ public void contentEditable() throws Exception {
* @throws Exception if an error occurs
*/
@Test
// to test this manually you have to use an english keyboard layout
@Alerts(DEFAULT = "down: 16,0 down: 49,0 press: 33,33 up: 49,0 up: 16,0"
+ " down: 16,0 down: 220,0 press: 124,124 up: 220,0 up: 16,0",
FF = "down: 16,0 down: 49,0 press: 0,33 up: 49,0 up: 16,0"
+ " down: 16,0 down: 220,0 press: 0,124 up: 220,0 up: 16,0",
FF_ESR = "down: 16,0 down: 49,0 press: 0,33 up: 49,0 up: 16,0"
+ " down: 16,0 down: 220,0 press: 0,124 up: 220,0 up: 16,0")
+ " down: 16,0 down: 220,0 press: 124,124 up: 220,0 up: 16,0")
//https://github.com/SeleniumHQ/selenium/issues/639
@BuggyWebDriver(FF_ESR = "down: 49,0 press: 33,33 up: 49,0 down: 220,0 press: 124,124 up: 220,0",
FF = "down: 49,0 press: 33,33 up: 49,0 down: 220,0 press: 124,124 up: 220,0",
IE = "down: 16,0 down: 49,0 press: 33,33 up: 49,0 up: 16,0 down: 17,0 "
+ "down: 18,0 down: 226,0 press: 124,124 up: 226,0 up: 17,0 up: 18,0")
FF = "down: 49,0 press: 33,33 up: 49,0 down: 220,0 press: 124,124 up: 220,0")
public void shiftKeys() throws Exception {
final String html = "<html><head><script>\n"
+ " function appendMessage(message) {\n"
Expand Down

0 comments on commit 215355f

Please sign in to comment.