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

How can we find the value of different attributes like name, class, value of an element?

928


What are testing types supported by selenium?

1017


How would you test your element locator?

978


Can we enter text without using sendkeys()?

972


what are the testing frameworks used in selenium?

1038


How can you use the recovery scenario in selenium webdriver?

1818


Explain what is the main difference between web-driver and rc?

953


What is the alternate way to click on login button?

1703


Mention when to use autoit?

939


Explain what is framework and what are the frameworks available in rc?

940


Explain what is group test in testng?

926


What are the different methods to refresh a web page in webdriver?

883


How many exceptions do you know in selenium webdriver?

946


What is the command that is used in order to display the values of a variable into the output console or log?

1072


Can we edit recorded selenium ide test cases?

935