Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 6, 2023
1 parent 1ebcfdf commit 176c1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/MinkSeleniumDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 176c1ad

Please sign in to comment.