You are here

public function TraversableElement::hasLink in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::hasLink()

Checks whether element has a link with specified locator.

Parameters

string $locator link id, title, text or image alt:

Return value

Boolean

File

vendor/behat/mink/src/Element/TraversableElement.php, line 41

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function hasLink($locator) {
  return null !== $this
    ->findLink($locator);
}