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 |
What are the capabilities of selenium webdriver or selenium 2.0?
How do you add check points or verification points in selenium?
When to use accessors in selenium?
What are the important features of selenium ide?
Explain the line of code webdriver driver = new firefoxdriver()?
How can we inspect the web element attributes in order to use them in different locators?
Tell me the meaning of assertion in selenium and what are the types of assertion?
How to select value in a dropdown?
How will you find an element using selenium?
Using web driver how you can store a value which is text box?
What is the use of @listener annotation in testng?
How to capture screenshot in selenium webdriver?