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\FunctionalCode
public function findLink($locator) {
return $this
->getSession()
->getPage()
->findLink($locator);
}