From 8b6e3c3b7907ad4dd8b0df683c43c27046bd1344 Mon Sep 17 00:00:00 2001 From: Alexander Obuhovich Date: Sun, 22 Mar 2020 16:52:59 +0200 Subject: [PATCH] Fixed "EventsTest::testKeyboardEvents" test. --- src/ZombieDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ZombieDriver.php b/src/ZombieDriver.php index 835ada3..058ebec 100644 --- a/src/ZombieDriver.php +++ b/src/ZombieDriver.php @@ -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;