You are here

protected function TestCase::safePageWait in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

\Behat\Mink\Session::wait()

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

... See full list

File

vendor/behat/mink/driver-testsuite/tests/TestCase.php, line 159

Class

TestCase

Namespace

Behat\Mink\Tests\Driver

Code

protected function safePageWait($time, $condition) {
  try {
    return $this
      ->getSession()
      ->wait($time, $condition);
  } catch (UnsupportedDriverActionException $e) {
    return true;
  }
}