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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is selenium server needed to run selenium webdriver scripts?

923


How could ajax controls be handled in webdriver?

978


What are the prerequisites to run selenium webdriver?

992


What is testng?

960


What do you know about selenium?

935


What is a relative xpath?

1112


What are the advantages of using git hub for selenium?

883


@timeouts ||= Timeouts.new(@bridge) what does it mean?

1952


How to upload a file in selenium webdriver?

1039


What will be the limits of selenium?

1014


what will be the first salary and what will be the hike in the salary?

857


How do you simulate scroll down action?

990


What’s new in selenium 3.0?

1031


What are the different exceptions you have faced in selenium webdriver?

912


How to print Duplicate values in Drop Down List

907