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

This step definition is used to be sure that the specified element has a specific value.

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

Define a step to assert that element contains a specific text value specified by id|class|name|label.

 

Example:

Then I should see "John Smith" in the "Username" element