function RulesBrowserTestBase::findField
Finds field (input, textarea, select) with specified locator.
Parameters
string $locator: Input id, name or label.
Return value
\Behat\Mink\Element\NodeElement|null The input field element.
File
-
tests/
src/ Functional/ RulesBrowserTestBase.php, line 55
Class
- RulesBrowserTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\rules\FunctionalCode
public function findField($locator) {
return $this->getSession()
->getPage()
->findField($locator);
}