how to select value from a drop down using Selenium IDE

前端 未结 9 2581
灰色年华
灰色年华 2021-02-20 09:26

I am using Selenium IDE for the first and has no knowledge of automation scripting. So far i am able to manage using IDE but one issue is I am not able to select a value from dr

9条回答
  •  没有蜡笔的小新
    2021-02-20 10:02

    First get the total number of items in the dropdown. 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.

提交回复
热议问题