My scenario has a HTMLTable in a web application and each cell in a table has a HTMLAnchor in it, which on clicking navigates to another page. I need to automate the said scenario using test partner i have to click on the anchor in every cell which will take me to another screen and i will click on back and return to same page. Suggest me if i can use for loop for clicking every cell.
well each time if you find out the text of (column number) + (Row number) then use the code to Click on that text. for example
Lets assume return of Row was 2 and Column was 1 your loop will go to fist row of column one and gather the text of that cell then you will store that text as a variable for example FindText= (HTMLTD("Row='1' Column='1'",tpAttachNoWait).Text)
Note: I am not stating that this is 100% correct but you need to implement your code around this logic. Sorry I have to go for my exam now so couldn’t spend long to solve the issue. Ill back later and will help if you require any