public function JavascriptEvaluationTest::testWaitReturnValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php \Behat\Mink\Tests\Driver\Js\JavascriptEvaluationTest::testWaitReturnValue()
Tests, that `wait` method returns check result after exit.
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Js/ JavascriptEvaluationTest.php, line 12
Class
Namespace
Behat\Mink\Tests\Driver\JsCode
public function testWaitReturnValue() {
$this
->getSession()
->visit($this
->pathTo('/js_test.html'));
$found = $this
->getSession()
->wait(5000, '$("#draggable").length == 1');
$this
->assertTrue($found);
}