You are here

public function SiteAlertTestBase::findLink in Site Alert 8

Finds link with specified locator.

Parameters

string $locator: Link id, title, text or image alt.

Return value

\Behat\Mink\Element\NodeElement|null The link node element.

File

tests/src/Functional/SiteAlertTestBase.php, line 21

Class

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

Namespace

Drupal\Tests\site_alert\Functional

Code

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