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

What are the different components of selenium?

0 Answers  


How do you identify an object using selenium?

0 Answers  


What is the use of javascriptexecutor?

0 Answers  


What are the annotations used in testng?

0 Answers  


Why testers should opt for selenium and not qtp?

0 Answers  


Can you explain the framework which you have used in your selenium project?

0 Answers  


How you can use recovery scenario with selenium?

0 Answers  


What is a relative xpath?

0 Answers  


What is the difference between TESTNG and JUNIT? List out Annotations?

1 Answers   HCL, Quovantis Technologies,


What does a right-pointing green triangle at the beginning of a command in side indicate?

0 Answers  


How to input text in the text box using selenium webdriver?

1 Answers  


In which format does source view shows your script in selenium ide?

0 Answers  


Categories