function WebAssert::elementAttributeNotExists
Checks that an attribute does not exist in an element.
Parameters
string $selectorType:
string|array $selector:
string $attribute:
Return value
Throws
File
-
vendor/
behat/ mink/ src/ WebAssert.php, line 642
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function elementAttributeNotExists(string $selectorType, $selector, string $attribute) {
$element = $this->elementExists($selectorType, $selector);
$message = sprintf('The attribute "%s" was found in the %s.', $attribute, $this->getMatchingElementRepresentation($selectorType, $selector));
$this->assertElement(!$element->hasAttribute($attribute), $message, $element);
return $element;
}