Skip to content

Commit 95d4c51

Browse files
committed
Condition can be an expression only
1 parent 312a967 commit 95d4c51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Selenium2Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ public function evaluateScript($script)
972972
*/
973973
public function wait($timeout, $condition)
974974
{
975-
$script = "return $condition;";
975+
$script = 'return (' . $condition . ');';
976976
$start = microtime(true);
977977
$end = $start + $timeout / 1000.0;
978978

0 commit comments

Comments
 (0)