Ask a Question

How to click on a hyperlink in a textbox?

jmeheus
Occasional Contributor

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.

 

13 REPLIES 13
rraghvani
Champion Level 3

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

jmeheus
Occasional Contributor

Picanol.jpg

jmeheus
Occasional Contributor

I should be able to click on the hyperlink WO109076

 

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?

rraghvani_0-1692874561761.png

 

Is that a desktop or web application?

jmeheus
Occasional Contributor

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

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.

rraghvani_0-1692875803681.png

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?

 

vinniew
Staff

Hi @jmeheus 

 

TC recognizes hyperlinks links fine, irrespective of how long it is..

 

vinniew_0-1692875658842.png

 

 

 

vinniew_2-1692875775904.png

 

From experience working with some hyperlinks links in MS dynamics apps you may need to simulate a "hoover" action over the control link first. 

You can this using on-screen actions 

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/on-screen-act...

 

Vinnie

 

 

jmeheus
Occasional Contributor

We can only see the properties of the textbox.

rraghvani
Champion Level 3

What does your Object Browser show for that control?

cancel
Showing results for 
Search instead for 
Did you mean: