Highlighted
New Member.
393 views

Selecting value randomly from dropdown after parameterizing in ANgular JS application

hi ,

 

how to parameterize the dropdown value from the combo box in Angular JS application,

What is the javascript code to make it generic to select the different value during iteration.

Javascript during recording:-evalXPath("//div[text()=\"*******"\"]");

 

 

0 Likes
2 Replies
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Selecting value randomly from dropdown after parameterizing in ANgular JS application

Hello,

I think you can use "parameter". 

You can add a parameter with the "Parameter Type" set to "Iteration Number",  then you can refer to this parameter in JS code and calculate out the related Xpath.

Another option is add a "File" or "Table" Parameter, and predefine all XPath value in it. then for the option "Update value on:", select "Each iteration". then you can refer to this parameter in JS code.

Regards,

Bingle(LoadRunner R&D) 

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Selecting value randomly from dropdown after parameterizing in ANgular JS application

Hi,

Which protocol are you using?

Thanks,

Shlomi

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.