Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to select a value from a drop-down?



How to select a value from a drop-down?..

Answer / dileep kumar

by using select keyword we can select a value from dropdown box
select select = new select (driver.findelement(by.xpath(" xpath")));
select.selectbyindex(2);
select.selectbyvalue(2);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How to get an attribute value using selenium webdriver?

0 Answers  


What is the difference between driver.close() and driver.quit command?

0 Answers  


What are the important selenium ide commands or selenese commands?

0 Answers  


What is selenium-rc (remote control) ?

0 Answers  


How do you verify if the checkbox/radio is checked or not?

0 Answers  


Tell me what kind of mouse actions can be performed in selenium?

0 Answers  


What programing language is most useful for creating selenium evaluations?

0 Answers  


What is the difference between implicit wait and explicit wait?

0 Answers  


Firefox driver is class or an interface and from where is it inherited?

0 Answers  


What is the difference between “/” and “XPath //”?

0 Answers  


How to switch between frames in selenium?

0 Answers  


I am not able to use "style" attribute to locate element with ie browser?

0 Answers  


Categories