public function DomainTestBase::findButton in Domain Access 8
Finds button with specified locator.
Parameters
string $locator: Button id, value or alt.
Return value
\Behat\Mink\Element\NodeElement|null The button node element.
File
- domain/
tests/ src/ Functional/ DomainTestBase.php, line 143
Class
- DomainTestBase
- Class DomainTestBase.
Namespace
Drupal\Tests\domain\FunctionalCode
public function findButton($locator) {
return $this
->getSession()
->getPage()
->findButton($locator);
}