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 capabilities of selenium webdriver or selenium 2.0?

0 Answers  


How do you add check points or verification points in selenium?

0 Answers  


When to use accessors in selenium?

0 Answers  


What are the important features of selenium ide?

0 Answers  


Explain the line of code webdriver driver = new firefoxdriver()?

1 Answers  


How can we inspect the web element attributes in order to use them in different locators?

0 Answers  


Tell me the meaning of assertion in selenium and what are the types of assertion?

0 Answers  


How to select value in a dropdown?

0 Answers  


How will you find an element using selenium?

0 Answers  


Using web driver how you can store a value which is text box?

0 Answers  


What is the use of @listener annotation in testng?

0 Answers  


How to capture screenshot in selenium webdriver?

0 Answers  


Categories