public function ErrorHandlingTest::testCheckInvalidElement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Basic\ErrorHandlingTest::testCheckInvalidElement()
File
- vendor/behat/ mink/ driver-testsuite/ tests/ Basic/ ErrorHandlingTest.php, line 29 
Class
- ErrorHandlingTest
- @group slow
Namespace
Behat\Mink\Tests\Driver\BasicCode
public function testCheckInvalidElement() {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/index.html'));
  $element = $this
    ->findById('user-name');
  $this
    ->setExpectedException(self::INVALID_EXCEPTION);
  $this
    ->getSession()
    ->getDriver()
    ->check($element
    ->getXpath());
}