Use of "select" and "selectAndWait" command in selenium IDE

"select" Command

Purpose of "select" command is to select label from drop down/combo box or list box.

New Test
Command Target Value
open http://only-testing-blog.blogspot.com/2014/01/textbox.html
select name=FromLB Russia

View example of HOW TO SELECT VALUE FROM DROP DOWN IN WEBDRIVER.

In this example, You need to add combo box id/Name/Xpath into target column and need to add option's value or visible text or index into value column. Supposing if your option name is "Russia" then you need to add it as Russia.

Here you can use four types of optionLocators. You can use labelPattern, valuePattern, id of label or index of label in value field.

"selectAndWait" command

Here something different then the "select" Command. If your page is reloading when you select label from drop down then you need to use "selectAndWait" command. It will select the specified label and then it will wait for page to load successfully.

1 comment: