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

Breadcrumb

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

function ElementHtmlException::getContext

Overrides ExpectationException::getContext

1 method overrides ElementHtmlException::getContext()
ElementTextException::getContext in vendor/behat/mink/src/Exception/ElementTextException.php
Gets the context rendered for this exception.

File

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

Class

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

Namespace

Behat\Mink\Exception

Code

protected function getContext() {
    return $this->element
        ->getOuterHtml();
}

API Navigation

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