Friday, 12 July 2013

Select Option from Drop down box using WebDriver


It has been quite some time, added any post related to Selenium/WebDriver. Today i will be going to write about selecting a option value from drop down box. Selenium provides a Select class to do that, it is pretty easy to use. Ok lets have one sample html for our demonstration-:






We will see now how to select options using selenium/webdriver's Select class. Below code explains how to use select class to select option from drop down box.



 Apart from the above 3 methods, there are other methods which can be used to perform other actions also.
Here is the link for Select Class methods.

Please feel free to drop a comment if you have any suggestion/comment/Issue related to the above post.

Thanks!!!

No comments:

Post a Comment

Angular JS Protractor Installation process - Tutorial Part 1

                     Protractor, formally known as E2E testing framework, is an open source functional automation framework designed spe...