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

Breadcrumb

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

function Element::elementNotFound

Builds an ElementNotFoundException.

Parameters

string $type:

string|null $selector:

string|null $locator:

Return value

ElementNotFoundException

Deprecated

as of 1.7, to be removed in 2.0

File

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

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

protected function elementNotFound(string $type, ?string $selector = null, ?string $locator = null) {
    @trigger_error(sprintf('The method %s is deprecated as of 1.7 and will be removed in 2.0', __METHOD__), E_USER_DEPRECATED);
    return new ElementNotFoundException($this->driver, $type, $selector, $locator);
}

API Navigation

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