You are here

public function Element::isValid in Zircon Profile 8

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

Checks if an element still exists in the DOM.

Return value

bool

Overrides ElementInterface::isValid

File

vendor/behat/mink/src/Element/Element.php, line 111

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function isValid() {
  return 1 === count($this
    ->getDriver()
    ->find($this
    ->getXpath()));
}