You are here

public function SiteAlertTestBase::findField in Site Alert 8

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/SiteAlertTestBase.php, line 34

Class

SiteAlertTestBase
Has some additional helper methods to make test code more readable.

Namespace

Drupal\Tests\site_alert\Functional

Code

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