private function WebAssert::assertElement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::assertElement()
Asserts a condition on an element.
Parameters
bool $condition:
string $message Failure message:
Element $element:
Throws
ElementHtmlException when the condition is not fulfilled
5 calls to WebAssert::assertElement()
- WebAssert::elementAttributeContains in vendor/
behat/ mink/ src/ WebAssert.php - Checks that an attribute of a specific elements contains text.
- WebAssert::elementAttributeExists in vendor/
behat/ mink/ src/ WebAssert.php - Checks that an attribute exists in an element.
- WebAssert::elementAttributeNotContains in vendor/
behat/ mink/ src/ WebAssert.php - Checks that an attribute of a specific elements does not contain text.
- WebAssert::elementContains in vendor/
behat/ mink/ src/ WebAssert.php - Checks that specific element contains HTML.
- WebAssert::elementNotContains in vendor/
behat/ mink/ src/ WebAssert.php - Checks that specific element does not contains HTML.
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 799
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
private function assertElement($condition, $message, Element $element) {
if ($condition) {
return;
}
throw new ElementHtmlException($message, $this->session
->getDriver(), $element);
}