Need to click radio button inside table
I need to click a radio button that comes inside a html table in the web application. Basically the requirement is to check for an web link in the 2nd column of the table and if the web link appears then the corrsponding radio button in the same row on 1st column will have to be set. I dont find any means to implement this requirement. Can you please help me in this regard?
Re: Need to click radio button inside table
This algorithm would need to be created for just about any test tool...
The fundamental approach is:
1. Determine the column that has the link you are interested in.
2. Find the text value of the link in a row by checking each row sequentially.
3. Determine the column that has the corresponding radio button.
4. Click the radio control that exists in the proper column that is in the same row that you found your link text.
I can tell you from experience that creating a full blown solution to determine which cell to interact with based upon other informtion in other cells can be a chore, but can be done successfully.