We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff39e2f commit 0dfd7b5Copy full SHA for 0dfd7b5
1 file changed
src/Selenium2Driver.php
@@ -972,7 +972,7 @@ public function evaluateScript($script)
972
*/
973
public function wait($timeout, $condition)
974
{
975
- $script = 'return (' . rtrim($condition, ';') . ');';
+ $script = 'return (' . rtrim($condition, " \t\n\r;") . ');';
976
$start = microtime(true);
977
$end = $start + $timeout / 1000.0;
978
0 commit comments