Forum Discussion
AlexeyKolosov
Staff
14 years agoHi Kish,
As I understand, you need to click a link in an HTML table located in a specific row and the link itself cannot be identified uniquely (e.g. via its text or href). If so, you can do it this way:
1. Use the FindChild method to find a unique cell located in the row you need.
2. Use the Parent property to get the row object.
3. Call the FindChild method for the row object to find the only link with the needed text (or href) in this row.
As an alternative, you can enumerate all rows and cells in a loop until you find the link you need. To learn how to do this, please see the Parsing HTML Tables help topic.
As I understand, you need to click a link in an HTML table located in a specific row and the link itself cannot be identified uniquely (e.g. via its text or href). If so, you can do it this way:
1. Use the FindChild method to find a unique cell located in the row you need.
2. Use the Parent property to get the row object.
3. Call the FindChild method for the row object to find the only link with the needed text (or href) in this row.
As an alternative, you can enumerate all rows and cells in a loop until you find the link you need. To learn how to do this, please see the Parsing HTML Tables help topic.