Then the response should not contain "text in the page"

This step definition is used to verify that the HTML response must not contain a specific text.

Then the response should not contain "([^"]*)?"

Define a step to asserting that the HTML response contains a specific text, not necessary to see it.

 

Example:

Then the response should not contain "Error: Ambiguous messages that are unclear"