I am writing a script to select a checkbox in a row from a table, and either click yes or no. However, once I finish that checkbox the checkbox cannot be used again since it has already been given a yes or no. On the 2nd iteration, it will choose the 2nd checkbox, and give a yes or no. The 3rd, 4th, etc.
I am trying to parameterize a number given from the XPath from the object identification. The Xpath given as, (for 3 rows):
//form[@id="matchAndSettleForm"]/table/tbody/tr[4]/td/div/div[3]/table/tbody/tr[1]/td[1]/div/div[2]
//form[@id="matchAndSettleForm"]/table/tbody/tr[4]/td/div/div[3]/table/tbody/tr[2]/td[1]/div/div[2]
//form[@id="matchAndSettleForm"]/table/tbody/tr[4]/td/div/div[3]/table/tbody/tr[3]/td[1]/div/div[2]
As you see, the third digit (red) corresponds to the row that the checbox is in that the script will select. I need to parameterize that number so that the script will check a different row every iteration, and also work for multiple pages. I will have to go through over 3000 rows, so I will need a way to make the script work for every page. Also, the table has 25 rows per page, so once the 26th iteration comes, the parameter number will need to be back at 1 again, since the 1st row on the second page is still the 1st row, not the 26th.
Is there a way to do this?