I am working on selenium using Java. In my application I want to select any random value from the dropdown. Please tell how is it possible?
Use getSelectOptions to get an array of options of the select box.
Then generate a random integer between 0 (inclusive) and the length of the array (exclusive).
Then use select with an index locator to select the randomly chosen option.