I’m trying to find text on a webpage that’s not marked with a specific ID or tag. It’s just plain text produced by an external actor that I have no control over.
Anyway to locate this?
I should probably mention that I’m doing automated testing using WatiN, and want to click a button next to a certain text (“Ny Linje”).
I could of course just hardcode the button-id, but I imagine the test will fail eventually if this is done.
The graphical output of this is something like below, but with several rows (Where || represents a cell in a table):
|| [BUTTON] || Ny Linje || Some other content…
Actually ended up doing like this: