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

in real time , which framework is used ? is it datadriven or keyword or hybrid ?? please answer

2 Answers   Cap Gemini,


What is the testng.xml file used for?

0 Answers  


In which format does source view show the script in selenium ide?

0 Answers  


What are the junits annotation linked with selenium?

0 Answers  


What are the advantages of page object model framework?

0 Answers  


How to enforce the title of the website?

0 Answers  


Can we enter text without using sendkeys()?

0 Answers  


How to assert text of webpage using selenium 2.0?

0 Answers  


What do you know about selenium?

0 Answers  


How can we fetch a text written over an element?

0 Answers  


What are the operating systems supported by selenium webdriver?

0 Answers  


What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?

0 Answers  


Categories