You are here

public function ErrorHandlingTest::testSelectOptionNotFoundElement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Basic\ErrorHandlingTest::testSelectOptionNotFoundElement()

File

vendor/behat/mink/driver-testsuite/tests/Basic/ErrorHandlingTest.php, line 72

Class

ErrorHandlingTest
@group slow

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testSelectOptionNotFoundElement() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/index.html'));
  $this
    ->setExpectedException(self::NOT_FOUND_EXCEPTION);
  $this
    ->getSession()
    ->getDriver()
    ->selectOption(self::NOT_FOUND_XPATH, 'test');
}