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

Explain the difference between single and double slash in x-path?

0 Answers  


What is the main difference between the close() and quit() methods?

0 Answers  


What do you know about selenium?

0 Answers  


How to write selenium code for purchasing product from amazon

0 Answers  


What differs the configuration of Selenium Selenium 2.0 1.0?

0 Answers  


List the different types of locaters in selenium.

0 Answers  


How does testng allow you to state dependencies? Explain it with an example.

0 Answers  


Can we move back and forward in browser using selenium?

0 Answers  


What is the selenium webdriver?

0 Answers  


What’s the difference between borland silk evaluation and selenium?

0 Answers  


How to get the number of frames on a page?

0 Answers  


Which web driver implementation is fastest?

0 Answers  


Categories