Hi Team,
I am trying to click on a link which is Inside a HTML Table.
Added the Element with Properties hierarchy as follows :
Tagname = Table
Tagname = tbody
TagIndex = tbody:0
Tagname = tr
Innertext Contains $(ID) Here ID should be 55999
Tagname = td
Class = dxgv
Innertext Contains $(ID) Here ID should be 55999
Tagname = a
But during runtime, Test Studio is NOT clicking on link inside a cell of HTML table. Please guide me on this
7 Answers, 1 is accepted
Hi Abdul,
I ran across your post and wanted to chime in. In your example, shouldn't that be "TextContent" contains $(ID) on the anchor/<a> tagname and not the <td>? Since you are using "innertext", you are looking for the text inside the <td> - which is nothing. You're actually looking for the anchor tag/<a> with a text of 55999.
Can an admin/someone with more knowledge verify that and/or shed some light on this situation? Just putting some thought into this answer helped me understand some important basic points and it should help all of us in understanding this better. Thanks in advance!
- Chris
As of what I see in the screenshot Chris is right and the inner text belongs to the anchor tag/<a>. I would recommend to look up the suggestions tab which will include all available attributes for both elements. Additionally the $(ID) could be simply replaced with the actual inner text. Here you could read further details for the chained find expressions generated by Test Studio and how to maintain such. I would like to share with you how elements' find expression could be modified.
Please consider providing your application in case you would need further assistance. Thanks!
Regards,
Elena Tsvetkova
Telerik by Progress
Hi Elena and Chris,
I re-verified this scenario with the solution provided by you both. This issue was NOT solved even if I use chained expressions and also with the solution provided by Chris i.e., data driving the property only at anchor(a) level and not at cell(td) level.
FYI attached the properties of Row, Cell, Anchor of the HTML table. Most the properties will change if other data is added or removed. Please guide me.
Thanks
Please grant us a direct access to your application so we can help you with the find expression.
You can also create some sample application with the structure of the table so we can replicate the problem.
Hope to hear from you soon.
Regards,
Boyan Boev
Telerik by Progress
Hi Boyan,
Can I create a support ticket for addressing this ?
I am blocked by this issue to make the scenarios automated further.
Thanks
I will create a support ticket to fix this issue right away so that i can share my screen and explain you more. Unfortunately i am not allowed to share the credentials or application related things outside network. Hope you will understand my limitations
Thanks
We found the support ticket and will continue the communication there. Thanks for submitting that!
Regards,
Konstantin Petkov
Telerik by Progress