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 |
Can you use Selenium to test the Rest API or Web services?
Is selenium capable of handling windows pop-ups?
List some scenarios which we cannot automate using selenium webdriver?
Tell us how can you run selenium server other than the default port 4444?
How do you clear the contents of a textbox in selenium?
What is regular expressions? How you can use regular expressions in selenium?
What are the limitations of selenium ide?
List out the test types that are supported by selenium?
List the different selenium tools.
Which selenium command(s) simulates selecting a link?
What are the annotations available in testng?
What are driver.close and driver.quit in WebDriver? Which is more preferable?