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
Explain dataproviders in testng ?
What is selenium-rc (remote control) ?
How can we deal with pop-up windows based on?
How can it be found if an item is displayed on the screen?
What is the difference between driver.findelement() and driver.findelements() commands?
What do we mean by selenium 1 and selenium 2?
What is regular expressions? How you can use regular expressions in selenium?
How to type text in a textbox using selenium?
What are the types of waits available in selenium webdriver?
What if you have written your own element locator and how would you test it?
How to write selenium code for purchasing product from amazon
Tell us how will you use selenium to upload a file?
What is the selenese command to show the value of a variable in the log file?
How to find whether an element is displayed on the web page?
Can you use Selenium to test the Rest API or Web services?