Skip to main content
Updated link zu JavaDoc
Source Link
Twaldigas
  • 1.7k
  • 15
  • 22

I don't know what programming language you use, but in Java you can do something like that:

Select select = new Select(driver.findElement(By.id("select")));
select.selectByIndex(1);

Here is the Select class: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/ui/Select.htmlhttp://seleniumhq.github.io/selenium/docs/api/java/index.html

I don't know what programming language you use, but in Java you can do something like that:

Select select = new Select(driver.findElement(By.id("select")));
select.selectByIndex(1);

Here is the Select class: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/ui/Select.html

I don't know what programming language you use, but in Java you can do something like that:

Select select = new Select(driver.findElement(By.id("select")));
select.selectByIndex(1);

Here is the Select class: http://seleniumhq.github.io/selenium/docs/api/java/index.html

Source Link
Twaldigas
  • 1.7k
  • 15
  • 22

I don't know what programming language you use, but in Java you can do something like that:

Select select = new Select(driver.findElement(By.id("select")));
select.selectByIndex(1);

Here is the Select class: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/ui/Select.html