I am using selenium and am trying to design a test where Selenium identifies the order I want to access based on the value of another column in the row on the page.

The page I am testing does not store records in any stable order, and I need to click on the link for the record that is in a "Not Yet Processed" status.

In the HTML formatting, is there a way for me to have Selenium read all of the rows looking for the row in "Not Yet Processed" status, and then click on the link 4 columns over to access that orders page? (The ultimate goal is to make a test that can place an order, and then go and cancel the order it just placed).