Then I should see "value" in the "text" element

Assert that an element (found by its label) contains or does not contain text.

Step pattern

Then (I |we )*should( not)* see "([^"]*)?" in( the)* "([^"]*)?" element

Examples

Example #1
Then I should see "John Smith" in the "Username" element
Example #2
Then I should not see "Joe Smith" in the "Username" element
Example #3
And we should see "1234" in the "Password" element