public function Html5Test::testHtml5FormButtonAttribute in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Form/Html5Test.php \Behat\Mink\Tests\Driver\Form\Html5Test::testHtml5FormButtonAttribute()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ Html5Test.php, line 60
Class
Namespace
Behat\Mink\Tests\Driver\FormCode
public function testHtml5FormButtonAttribute() {
$this
->getSession()
->visit($this
->pathTo('/html5_form.html'));
$page = $this
->getSession()
->getPage();
$webAssert = $this
->getAssertSession();
$firstName = $webAssert
->fieldExists('first_name');
$lastName = $webAssert
->fieldExists('last_name');
$firstName
->setValue('John');
$lastName
->setValue('Doe');
$page
->pressButton('Submit outside form');
if ($this
->safePageWait(5000, 'document.getElementsByTagName("title") !== null')) {
$out = <<<OUT
'first_name' = 'John',
'last_name' = 'Doe',
'submit_button' = 'test',
OUT;
$this
->assertContains($out, $page
->getContent());
}
}