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 |
Explain the difference between single and double slash in x-path?
What is the main difference between the close() and quit() methods?
What do you know about selenium?
How to write selenium code for purchasing product from amazon
What differs the configuration of Selenium Selenium 2.0 1.0?
List the different types of locaters in selenium.
How does testng allow you to state dependencies? Explain it with an example.
Can we move back and forward in browser using selenium?
What is the selenium webdriver?
What’s the difference between borland silk evaluation and selenium?
How to get the number of frames on a page?
Which web driver implementation is fastest?