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

Breadcrumb

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

function ElementInterface::findAll

Finds all elements with specified selector inside the current element.

Valid selector engines are named, xpath, css, named_partial and named_exact.

'named' is a pseudo selector engine which prefers an exact match but will return a partial match if no exact match is found. 'xpath' is a pseudo selector engine supported by SelectorsHandler.

More selector engines can be registered in the SelectorsHandler.

Parameters

string $selector selector engine name:

string|array $locator selector locator:

Return value

NodeElement[]

See also

NamedSelector for the locators supported by the named selectors

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

File

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

Class

ElementInterface
Element interface.

Namespace

Behat\Mink\Element

Code

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

API Navigation

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