Forum Discussion

jmeheus's avatar
jmeheus
Occasional Contributor
2 years ago

How to click on a hyperlink in a textbox?

I have a scenario where I have to click on a Hyperlink. 

The Hyperlink is stored in a textbox.

When scripting the scenario, I can click on the Textbox, but only when the Hyperlink is large enough the script continues.

But the hyperlink is most of the time a short text.

 

So my question is, how can I capture this, that when  clicking on the hyperlink a new window opens.

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Do you have a screenshot of your "hyperlink in a textbox" ?

  • jmeheus's avatar
    jmeheus
    Occasional Contributor

    I should be able to click on the hyperlink WO109076

     

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Do you have to press e.g. Ctrl key followed by mouse click, or just mouse click on the link?

     

    If you click in the area highlighted, will that open the link?

     

    Is that a desktop or web application?

    • jmeheus's avatar
      jmeheus
      Occasional Contributor

      just click on it with the mouse cursor. It is a Dynamics 365 application.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    I don't know much about Microsoft Dynamics 365 Applications but it is supported by TC.

     

    Are you able to use the Object Browser, to see if there is a link within the table view? E.g.

    You should be able to do something like, Table(0).Cell(1, 0).Link(0).Click() which will click the link. However, if you do Table(0).Cell(1, 0).Click() then you are clicking on the cell - I think this is what you are doing?

     

    • jmeheus's avatar
      jmeheus
      Occasional Contributor

      We can only see the properties of the textbox.

      • vinniew's avatar
        vinniew
        Staff

        jmeheus 

        Use the object spy, instead using drag and drop use the point and fix option

         

        Once you have highlighted the link, click ctrl shift and a 

         

        I'm guessing  you will need to simulate the hoover control for TC to see the inner properties 

         

        Vinnie