function RulesBrowserTestBase::findButton
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/ RulesBrowserTestBase.php, line 68
Class
- RulesBrowserTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\rules\FunctionalCode
public function findButton($locator) {
return $this->getSession()
->getPage()
->findButton($locator);
}