Styrow.dev
Question 50 of 99

How can we select an option of a dropdown using Selenium Webdriver?

Question

How can we select an option of a dropdown using Selenium Webdriver?

Answer

To be able to select the value of a dropdown using Selenium Webdriver we have to use the Select class, of Webdriver. Through this class we can select a value of a dropdown by its value, its visible text or its index number (position).