Link

the “__” element should not contain “__”

Verifies that an element matched by the selector, ID, name, or label does not contain the specified text.

Pattern

^(?|the )"([^"]*)" (?|element )should not contain "([^"]*)"$

Parameters

Position Description Value Type Restrictions
1 field field id/name/label/selector  
2 value string/variables  

Examples

Given I am on the "home" page
Then the "HomeCenterMessage" element should not contain "Hello, World."