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

Breadcrumb

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

function ElementInterface::find

Finds first element with specified selector inside the current element.

Parameters

string $selector selector engine name:

string|array $locator selector locator:

Return value

NodeElement|null

See also

ElementInterface::findAll for the supported selectors

1 method overrides ElementInterface::find()
Element::find in vendor/behat/mink/src/Element/Element.php
Finds first element with specified selector inside the current element.

File

vendor/behat/mink/src/Element/ElementInterface.php, line 87

Class

ElementInterface
Element interface.

Namespace

Behat\Mink\Element

Code

public function find(string $selector, $locator);

API Navigation

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