Skip to content

Commit d7622bf

Browse files
authored
Merge pull request #323 from mvorisek/allow_only_expr
Condition can be an expression only
2 parents 6029d7d + 95d4c51 commit d7622bf

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)