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
Which selenium command(s) simulates selecting a link?
What is automation testing?
Do you know a way to refresh the browser by using selenium?
Tell us what kind of keyboard operations can be performed in selenium?
How to scroll web page down or up using selenium webdriver?
What are some commonly encountered exceptions in selenium?
How to find whether an element is displayed on the web page?
We do create a reference variable ‘driver’ of type webdriver
List some of the test types that are supported by selenium.
What is a fundamental difference between xpath and css selector?
What do you mean by the assertion in selenium?
How do you verify if the checkbox/radio is checked or not?
How we handle pop-up web-based ?
How can we select elements by their attribute value using css selector?
What are junit annotations?