Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Element.php

function Element::isValid

Overrides ElementInterface::isValid

File

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

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal