When I click "text" in the "table" row

This step finds a table, locates a row containing the identifier text, then clicks on the target text within that row.

When (I |we )*click "([^"]*)?" in( the)* "([^"]*)?" row$

Clicks on specific text within a table row that contains a specified identifier text.

 

Example #1: When I click "Edit" in the "John Smith" row

Example #2: When I click "Delete" in the "Product A" row  
Example #3: When we click "View Details" in the "Order #12345" row
Example #4: And I click "Download" in the "Report 2024" row