protected function TestCase::safePageWait in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/TestCase.php \Behat\Mink\Tests\Driver\TestCase::safePageWait()
Waits for a condition to be true, considering than it is successful for drivers not supporting wait().
Parameters
int $time:
string $condition A JS condition to evaluate:
Return value
bool
See also
8 calls to TestCase::safePageWait()
- GeneralTest::testAdvancedForm in vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php - GeneralTest::testBasicForm in vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php - GeneralTest::testFormSubmit in vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php - GeneralTest::testFormSubmitWays in vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php - @dataProvider formSubmitWaysDataProvider
- GeneralTest::testFormSubmitWithoutButton in vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ TestCase.php, line 159
Class
Namespace
Behat\Mink\Tests\DriverCode
protected function safePageWait($time, $condition) {
try {
return $this
->getSession()
->wait($time, $condition);
} catch (UnsupportedDriverActionException $e) {
return true;
}
}