How to select dropdown menu item with selenium c# code example

Example 1: select dropdown selenium

How do you handle Select type of dropdown?
    - If it is  web element.
    -> return type: List

Example 2: using selenium with a dropdown menu

driver.findElement(By.id("dropdownlistone")).click(); // To click on drop down list
driver.findElement(By.linkText("india")).click(); // To select a data from the drop down list

Tags:

Misc Example