Highlighted
Absent Member.
Absent Member.
150 views

Regarding multiple dependent dropdown menu scripting

Hi All.

we have an application where a user have to select a value from a dropdown. The second dropdown is dependent on first and the third is dependent on second.

So was wondering how to come up with a script which when randomly selected.

Thank you.
0 Likes
4 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Regarding multiple dependent dropdown menu scripting

Typically you may need to handle it manually when you want to select the options randomly. Bot Web & Click/Script protocol can be used.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Regarding multiple dependent dropdown menu scripting

You can correlate the drop downs. You can use WSRP function with Ord=All so that you can capture all the values of the particular drop-down. Then you can use some C coding with some LR functions to randomly select the options that you need. This is feasible.

Thanks
Prashanth Thimmavajjala
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Regarding multiple dependent dropdown menu scripting

Thanks for replying guys.

Let me frame my question again.

When ever i select the value from first drop down, a java script is bieng called and the values get displayed. The same thing with the third drop down. So only the first dropdown values are in the source code but the rest of the dropdowns are getting called from the java script.

So how to handle this issue?

The custom request for those calls is in the attchment.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Regarding multiple dependent dropdown menu scripting

Use Web Click & Script protocol. When you select the first drop down the java script will gets execute automatically and the second drop down elements will get populated.

You cannot achieve this in Web http/html protocol.
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.