$constraint =
new IsEqual($text);
Assert::
assertThat($this->
elementExists($selectorType,
$selector)->
getText(),
$constraint,
$message);
} /**
* Asserts that a status message exists.
*
* @param string|null $type
* The optional message type: status, error, or warning.
*/
public function statusMessageExists(string
$type = NULL
): void
{ $selector =
$this->
buildStatusMessageSelector(NULL,
$type);
try { $this->
elementExists('xpath',
$selector);
} catch (ExpectationException
$e) { Assert::
fail($e->
getMessage());
} } /**
* Asserts that a status message does not exist.
*
* @param string|null $type
* The optional message type: status, error, or warning.
*/