public function BrowserTestHelpersTrait::findLink in Typed Data API enhancements 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/ Traits/ BrowserTestHelpersTrait.php, line 19
Class
- BrowserTestHelpersTrait
- Provides some helpers for BrowserTestBase.
Namespace
Drupal\Tests\typed_data\TraitsCode
public function findLink($locator) {
return $this
->getSession()
->getPage()
->findLink($locator);
}