Understand and Improve your Website Speed

Get insights with modern charts and user experience metrics.
Test your website every hour & Compare with previous runs or competitors.
2 minutes read

In order to select a dropdown value with Selenium WebDriver you have to create a Select (in C# it’s called SelectElement) element and not use the default WebElements.

import org.openqa.selenium.support.ui.Select;

Use our previous post to locate elements with Selenium WebDriver.

Select dropdown = new Select(driver.findElement(By.id("identifier")));

Let’s consider the following dropdown element for our example:

See more details

How Much Traffic Can Your Website Handle?