Skip to content

Commit

Permalink
Update WebDriver.php: executeJS: Removing jQuery (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer authored Jul 29, 2024
1 parent 397c2f0 commit 81b562c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2875,16 +2875,13 @@ public function waitForJS(string $script, int $timeout = 5): void
}

/**
* Executes custom JavaScript.
*
* This example uses jQuery to get a value and assigns that value to a PHP variable:
* Executes JavaScript commands.
*
* ```php
* <?php
* $myVar = $I->executeJS('return $("#myField").val()');
* $myVar = $I->executeJS('return document.getElementById("myField").value');
*
* // additional arguments can be passed as array
* // Example shows `Hello World` alert:
* // Additional arguments can be passed as array. E.g. this will alert `Hello World`:
* $I->executeJS("window.alert(arguments[0])", ['Hello world']);
* ```
*
Expand Down

0 comments on commit 81b562c

Please sign in to comment.