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

Breadcrumb

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

function Element::find

Overrides ElementInterface::find

7 calls to Element::find()
Element::has in vendor/behat/mink/src/Element/Element.php
Checks whether element with specified selector exists inside the current element.
NodeElement::getParent in vendor/behat/mink/src/Element/NodeElement.php
Returns parent element to the current one.
NodeElement::selectOption in vendor/behat/mink/src/Element/NodeElement.php
Selects specified option for select field or specified radio button in the group.
TraversableElement::findButton in vendor/behat/mink/src/Element/TraversableElement.php
Finds button (input[type=submit|image|button|reset], button) with specified locator.
TraversableElement::findById in vendor/behat/mink/src/Element/TraversableElement.php
Finds element by its id.

... See full list

File

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

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function find(string $selector, $locator) {
    $items = $this->findAll($selector, $locator);
    return count($items) ? current($items) : null;
}

API Navigation

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