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 is selenium 1.0?
What type of tests have you automated?
What is the function of xpath?
How can we clear a text written in a textbox?
What are the Different Types of Waiting in the WebDriver?
How to assert title of the web page?
What distinguishes between an absolute and relative url in side?
What is the difference between captureentirepagescreenshot and capturescreenshot?
How to handle dropdowns in selenium?
What is the difference between assert and verify in selenium?
How to handle a dropdown in selenium webdriver? How to select a value from dropdown?
What do you know about Selenium IDE?