public function TraversableElement::findLink in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::findLink()
Finds link with specified locator.
Parameters
string $locator link id, title, text or image alt:
Return value
NodeElement|null
2 calls to TraversableElement::findLink()
- TraversableElement::clickLink in vendor/
behat/ mink/ src/ Element/ TraversableElement.php - Clicks link with specified locator.
- TraversableElement::hasLink in vendor/
behat/ mink/ src/ Element/ TraversableElement.php - Checks whether element has a link with specified locator.
File
- vendor/
behat/ mink/ src/ Element/ TraversableElement.php, line 53
Class
- TraversableElement
- Traversable element.
Namespace
Behat\Mink\ElementCode
public function findLink($locator) {
return $this
->find('named', array(
'link',
$locator,
));
}