private function WebAssert::assertElementText in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::assertElementText()
 
Asserts a condition involving the text of an element.
Parameters
bool $condition:
string $message Failure message:
Element $element:
Throws
ElementTextException when the condition is not fulfilled
2 calls to WebAssert::assertElementText()
- WebAssert::elementTextContains in vendor/
behat/ mink/ src/ WebAssert.php  - Checks that specific element contains text.
 - WebAssert::elementTextNotContains in vendor/
behat/ mink/ src/ WebAssert.php  - Checks that specific element does not contains text.
 
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 817  
Class
- WebAssert
 - Mink web assertions tool.
 
Namespace
Behat\MinkCode
private function assertElementText($condition, $message, Element $element) {
  if ($condition) {
    return;
  }
  throw new ElementTextException($message, $this->session
    ->getDriver(), $element);
}