Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Fixed "EventsTest::testKeyboardEvents" test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Obuhovich committed Mar 22, 2020
1 parent 7fd3553 commit 8b6e3c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ZombieDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,9 @@ protected function triggerKeyEvent($name, $xpath, $char, $modifier)
e.altKey = {$isAltKeyArg};
e.shiftKey = {$isShiftKeyArg};
e.metaKey = {$isMetaKeyArg};
e.charCode = {$char}; // The "e.keyCode" is deprecated.
e.charCode = {$char};
e.keyCode = {$char}; // deprecated.
e.which = {$char}; // deprecated.
node.dispatchEvent(e);
stream.end();
JS;
Expand Down

0 comments on commit 8b6e3c3

Please sign in to comment.