1. Use correlation to capture all the drop down values, web_reg_save_param ("DropDownValues", "LB= value=\"", "RB=\"", "Ord=All", LAST); In the above code change the LB & RB accordingly to capture the drop down values. With ordinance set to all, the above code creates an array with name DropDownValues which has all the drop down values, which can be accessed like DropDownValues_1, DropDownValues_2, .... DropDownValues_N 2. Once you capture all drop down values, use lr_paramarr_random function to get the random value from the DropDownValues array and you can save it in a variable. DDValue = lr_paramarr_random(DropDownValues) 3. Replace the recorded drop down value with DDValue.