public function ErrorHandlingTest::testInvalidHtml5FormId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\ErrorHandlingTest::testInvalidHtml5FormId()
@expectedException \Behat\Mink\Exception\DriverException @expectedExceptionMessage The selected node has an invalid form attribute (foo)
File
- vendor/
behat/ mink-browserkit-driver/ tests/ Custom/ ErrorHandlingTest.php, line 81
Class
Namespace
Behat\Mink\Tests\Driver\CustomCode
public function testInvalidHtml5FormId() {
$html = <<<'HTML'
<html>
<body>
<form id="test">
<input name="test" value="foo" form="foo">
<input type="submit">
</form>
<div id="foo"></div>
</body>
</html>
HTML;
$this->client
->setNextResponse(new Response($html));
$driver = $this
->getDriver();
$driver
->visit('/index.php');
$driver
->setValue('//input[./@name="test"]', 'bar');
}