This is a migrated thread and some comments may be shown as answers.

Unable to click on a hyperlink inside a cell of HTML table

7 Answers 237 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 1
Abdul asked on 05 Aug 2016, 08:18 AM

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

Sort by
0
Chris
Top achievements
Rank 1
answered on 08 Aug 2016, 09:37 PM

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

0
Elena
Telerik team
answered on 10 Aug 2016, 06:45 AM
Hello Abdul, 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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul
Top achievements
Rank 1
answered on 11 Aug 2016, 11:55 AM

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

 

 

 

 

0
Boyan Boev
Telerik team
answered on 16 Aug 2016, 07:45 AM
Hello Abdul,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 25 Aug 2016, 01:35 PM

Hi Boyan,

 

Can I create a support ticket for addressing this ?

I am blocked by this issue to make the scenarios automated further.

 

Thanks

0
Abdul Khader
Top achievements
Rank 1
answered on 25 Aug 2016, 01:39 PM

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

0
Konstantin Petkov
Telerik team
answered on 30 Aug 2016, 07:28 AM
Hello,

We found the support ticket and will continue the communication there. Thanks for submitting that!

Regards,
Konstantin Petkov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Abdul
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Elena
Telerik team
Abdul
Top achievements
Rank 1
Boyan Boev
Telerik team
Abdul Khader
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or