/** * @see Behat\Mink\Driver\DriverInterface::wait() */ public function wait($time, $condition) { try { $this->browser->waitForCondition('with (selenium.browserbot.getCurrentWindow()) { ' . "\n" . $condition . "\n }", $time); } catch (SeleniumException $e) { } }
/** * {@inheritdoc} */ public function wait($timeout, $condition) { $condition = 'with (selenium.browserbot.getCurrentWindow()) { ' . "\n" . $condition . "\n }"; try { $this->browser->waitForCondition($condition, $timeout); } catch (SeleniumException $e) { // ignore error } return $this->browser->getEval($condition) == 'true'; }