public function GeneralTest::testBasicGetForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Form/GeneralTest.php \Behat\Mink\Tests\Driver\Form\GeneralTest::testBasicGetForm()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Form/ GeneralTest.php, line 119
Class
Namespace
Behat\Mink\Tests\Driver\FormCode
public function testBasicGetForm() {
$this
->getSession()
->visit($this
->pathTo('/basic_get_form.php'));
$webAssert = $this
->getAssertSession();
$page = $this
->getSession()
->getPage();
$this
->assertEquals('Basic Get Form Page', $webAssert
->elementExists('css', 'h1')
->getText());
$search = $webAssert
->fieldExists('q');
$search
->setValue('some#query');
$page
->pressButton('Find');
$div = $webAssert
->elementExists('css', 'div');
$this
->assertEquals('some#query', $div
->getText());
}