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).
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.