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

Breadcrumb

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

function ElementHtmlException::__construct

Initializes exception.

Parameters

string $message optional message:

DriverInterface|Session $driver driver instance:

Element $element element:

\Throwable|null $exception expectation exception:

Overrides ExpectationException::__construct

File

vendor/behat/mink/src/Exception/ElementHtmlException.php, line 39

Class

ElementHtmlException
Exception thrown when an expectation on the HTML of an element fails.

Namespace

Behat\Mink\Exception

Code

public function __construct(string $message, $driver, Element $element, ?\Throwable $exception = null) {
    $this->element = $element;
    parent::__construct($message, $driver, $exception);
}

API Navigation

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