From 176c1ad1d141ad9433f4d2e37304c8d3d437d802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 6 May 2023 16:14:35 +0200 Subject: [PATCH] fix typo --- src/Behat/MinkSeleniumDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Behat/MinkSeleniumDriver.php b/src/Behat/MinkSeleniumDriver.php index fe9b75d60a..71dcca4849 100644 --- a/src/Behat/MinkSeleniumDriver.php +++ b/src/Behat/MinkSeleniumDriver.php @@ -65,7 +65,7 @@ protected function executeSynJsAndWait(string $action, WebDriverElement $element $waitUniqueKey = '__wait__' . hash('sha256', microtime(true) . random_bytes(64)); $this->executeScript( - 'window.syn[arguments[1]] = true; window.syn.' . $action . '(arguments[0], arguments[1], () => delete window.syn[arguments[1]]);', + 'window.syn[arguments[2]] = true; window.syn.' . $action . '(arguments[0], arguments[1], () => delete window.syn[arguments[2]]);', [$element, $options, $waitUniqueKey] ); $this->wait(5000, 'typeof window.syn[arguments[0]] === \'undefined\'', [$waitUniqueKey]);