You are here

public function RulesBrowserTestBase::findField in Rules 8.3

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\Functional

Code

public function findField($locator) {
  return $this
    ->getSession()
    ->getPage()
    ->findField($locator);
}