you will need to edit the selector so that it is dynamic to the situation. this can be achieved by either replacing parts of the selector with wild cards (* or ?) or by replacing parts of the selector with variables which you can change, like the table row.