What build are you using? In build 8.0.1082 there were enhancements for interrogating web pages that should help you. To do what you want, you just need to position the link inside of your table cells. Without seeing how you have this interrogated it is not possible to give you much more guidance.
This is a little complicated in 8.0.1080 - much easier in 8.0.1082 and higher. You need to interrogate the table row and table cell first. You would set the row UseKeys=true - this clones the row control so you can match more than one row (that is how Table Designer works too). Once you have done this, you need to interrogate the link. The link most likely will not appear under the cell in 8.0.1080, instead you will have to hand edit the xml file to move the link to that position.
Posted: 4 years ago
Posted: 23 Mar 2018 3:28 EDT
Michael Tan (tanm1)
Senior System Architect
our customer is on 8.0.1028: they are unable to interrogate their site using Table Designer (we have an SR open for this) and we are proceeding using cloned controls. UseKeys=true works for the table cells: we can get all values in each column using GetClones. Furthermore, when we interrogate the link within one of the table elements, the control appears under the cell unlike what you mentioned. However, we cannot get the clones of the link: it only matches the first row.
I modified the match rules of the link to match the start of the link URL, so in theory it should successfully match all the links as they start with the same host and script, but it does not. The link control appears to think that the table cell control which it is under is a single cell, and despite the fact that the table cell matches all its clones the link control does not, regardless of whether we set its UseKeys to true or false.
Do you have any ideas?
Thanks and regards,
Posted: 4 years ago
Posted: 23 Mar 2018 11:21 EDT
Jeff Badger (jeffbadger)
Principal Product Manager, Robotics
If the link is a child of the table cell then it doesn't have any clones. Clones would also need to be children of the same table cell, which they are not. Set UseKeys=false for the links. To click the link, all you should have to do is find the correct table cell and then do a PerformClick on the link. The table cell will provide the reference to the correct link automatically.