Then I should see "text" in the "table" row

This step finds a table, locates a row containing the identifier text, and then verifies that the target text is visible within that row.

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

 

Asserts that specific text is visible within a table row that contains a specified identifier text.

 Example #1: Then I should see "Active" in the "John Smith" row
 Example #2: Then I should see "In Stock" in the "Product A" row  
 Example #3: Then we should see "Processing" in the "Order #12345" row
 Example #4: And I should see "Admin" in the "john.smith@example.com" row

 

Asserts that specific text is NOT visible within a table row that contains a specified identifier text.

Example #1: Then I should not see "Admin" in the "Jane Doe" row
Example #2: Then I should not see "Out of Stock" in the "Product A" row  
Example #3: And I should not see "Inactive" in the "john.smith@example.com" row