Issue after clicking specific text in a table : stale element reference: element is not attached to the page document

One oops you have is you have two labels with the same name: table. You should change the code in the for loop from:
table: break

to become:
break table;

The idea is that you want to break out of the both inner and outer loops after you have found your item of interest. Your upper label, table, is the reference you want to break to.

See if that is your concern too.

2 Likes