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

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

Step pattern

Then (I |we )*should( not)* see "([^"]*)?" in( the)* "([^"]*)?" element by( its)*(?: "([^"]*)?")* (attribute|attr)

Examples

Example #1
Then I should see "John Smith" in the "uname" element by its "id" attr
Example #2
Then I should see "1234" in the "pwordcss" element by attr
Example #3
Then I should not see "John Smith" in the "uname" element by its "id" attr
Example #4
Then I should not see "1234" in the "pwordcss" element by attr