You are here

public function ComplexWidgetTest::elementWithXpath in Inline Entity Form 8

Assert and return an element via XPath. On fail, save output and throw.

Parameters

string $xpath: The XPath.

Return value

\Behat\Mink\Element\NodeElement The element.

File

tests/src/FunctionalJavascript/ComplexWidgetTest.php, line 1041

Class

ComplexWidgetTest
IEF complex field widget tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

public function elementWithXpath(string $xpath) : NodeElement {
  return $this
    ->waitForXpath($xpath, 0);
}