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

8 posts, 0 answers
  1. Abdul
    Abdul avatar
    7 posts
    Member since:
    Mar 2016

    Posted 05 Aug Link to this post

    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

  2. Chris
    Chris avatar
    18 posts
    Member since:
    Oct 2015

    Posted 08 Aug Link to this post

    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

  3. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    254 posts

    Posted 10 Aug Link to this post

    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!
  4. Abdul
    Abdul avatar
    7 posts
    Member since:
    Mar 2016

    Posted 11 Aug in reply to Elena Tsvetkova Link to this post

    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

     

     

     

     

  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 16 Aug Link to this post

    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!
  6. Abdul Khader
    Abdul Khader avatar
    22 posts
    Member since:
    Feb 2016

    Posted 25 Aug in reply to Boyan Boev Link to this post

    Hi Boyan,

     

    Can I create a support ticket for addressing this ?

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

     

    Thanks

  7. Abdul Khader
    Abdul Khader avatar
    22 posts
    Member since:
    Feb 2016

    Posted 25 Aug in reply to Abdul Khader Link to this post

    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

  8. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 30 Aug Link to this post

    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!
Back to Top