Highlighted
Absent Member.
Absent Member.
526 views

TruClient Script Issue

Hi Team,

we are developping scripts using TruClient.

I am facing below problem

evalXPath("//div[text()=\"KWLINHYD1601180009\"]");  -> i want to change this number(KWLINHYD1601180009) every time .How?

Arguments-> value->LR ->LR is unique Value (i know how to parameterization ) but i dont know Object->name->KWLINHYD1601180009->evaery time i want to change(supppose next time KWLINHYD1601180010,KWLINHYD1601180011 etc like that)

 

0 Likes
4 Replies
Highlighted
Contributor.
Contributor.

Hi,

You can access the arguments context from JavaScript ID method using ArgsContext.

You need to define a parameter in Vugen, and use it in the JavaScript expression.

As follows:

evalXPath("//div[text()=\"" + ArgsContext.TC.getParam("paramSessionId") +"\"]");  

Thanks,

Lital

0 Likes
Highlighted
Absent Member.
Absent Member.

HI Lital,

Thank you very much for your kind support.

I get rid of my problem with your inputs.

Could you please provide me any document/vidious kind of things to learn indepth about truclient protocol.

Regards,

Sivanjan BV

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

0 Likes
Highlighted
Absent Member.
Absent Member.

Thanks

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.