You are here

public function RulesBrowserTestBase::findLink in Rules 8.3

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/RulesBrowserTestBase.php, line 26

Class

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

Namespace

Drupal\Tests\rules\Functional

Code

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