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

Breadcrumb

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

function ElementInterface::has

Checks whether element with specified selector exists inside the current element.

Parameters

string $selector selector engine name:

string|array $locator selector locator:

Return value

bool

See also

ElementInterface::findAll for the supported selectors

1 method overrides ElementInterface::has()
Element::has in vendor/behat/mink/src/Element/Element.php
Checks whether element with specified selector exists inside the current element.

File

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

Class

ElementInterface
Element interface.

Namespace

Behat\Mink\Element

Code

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

API Navigation

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