public function SiteAlertTestBase::findButton in Site Alert 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
- tests/
src/ Functional/ SiteAlertTestBase.php, line 47
Class
- SiteAlertTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\site_alert\FunctionalCode
public function findButton($locator) {
return $this
->getSession()
->getPage()
->findButton($locator);
}