public function TraversingTest::testFindingChild in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Basic/TraversingTest.php \Behat\Mink\Tests\Driver\Basic\TraversingTest::testFindingChild()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Basic/ TraversingTest.php, line 134
Class
Namespace
Behat\Mink\Tests\Driver\BasicCode
public function testFindingChild() {
$this
->getSession()
->visit($this
->pathTo('/index.html'));
$form = $this
->getSession()
->getPage()
->find('css', 'footer form');
$this
->assertNotNull($form);
$this
->assertCount(1, $form
->findAll('css', 'input'), 'Elements are searched only in the element, not in all previous matches');
}