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\ExceptionCode
public function __construct(string $message, $driver, Element $element, ?\Throwable $exception = null) {
$this->element = $element;
parent::__construct($message, $driver, $exception);
}