Ajax TruClient : how to click on very first link in table, this link is dynamic (235 Views)
Reply
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 1 of 4 (235 Views)

Ajax TruClient : how to click on very first link in table, this link is dynamic

I have a table where some links in first column there are links and those are changing on every new run, how can I generalise in code (like LR.xxx) to always pick up very first link in table's first colums first row cell in truClient

prod support
telecom

Smile tomorrow will be worse !!!
Please use plain text.
HP Expert
vmanolova
Posts: 525
Registered: ‎05-24-2012
Message 2 of 4 (229 Views)

Re: Ajax TruClient : how to click on very first link in table, this link is dynamic

Hi,

 

In the "click on the link step" you can choose  ID Method  to be XPath instead of Automatic.

For more details about using this option please review the Tips and Tricks: Ajax TruClient Object Parameterization" link in the following post:

http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/LR-Support-Tip-Ajax-TruClient-Videos-and-kn...

 

Kind regards,

 

HP Support
If you haven’t tried it yet, come and join us in our entitled forums at Support Customer Forums
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 3 of 4 (195 Views)

Re: Ajax TruClient : how to click on very first link in table, this link is dynamic

not getting this page getting message

Sorry, you do not have sufficient privileges for that action.
Please click the Back button on your browser.
prod support
telecom

Smile tomorrow will be worse !!!
Please use plain text.
HP Expert
vmanolova
Posts: 525
Registered: ‎05-24-2012
Message 4 of 4 (185 Views)

Re: Ajax TruClient : how to click on very first link in table, this link is dynamic

[ Edited ]

Hi,

 

To access Support Customer forum you will need to link a valid SAID to your SSO account.

You can find instructions here: http://h30499.www3.hp.com/hpeb/attachments/hpeb/sws-LoadRunner_SF/2548/1/Adding%20valid%20Support%20...

and in the following video: http://www.youtube.com/watch?v=4ChlysWupWM

 

The idea is to use the XPath as an ID method and modify the XPath, if needed, in such a way that you can access the first link.

 

 

XPath.png

 

The document I am referring to LoadRunner11.00_AjaxTruClient_TipsTricks.pdf contains an example about using this approach for a list of radio buttons you need to choose from.  To access it you will also need a valid SAID linked to your SSO account.

 

You can also review LoadRunner User Guide under the section "How to Resolve Object Identification Issues" in TruClient Protocol chapter where the usage of ID methods is described.

 

Kind regards,

 

HP Support
If you haven’t tried it yet, come and join us in our entitled forums at Support Customer Forums
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation