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 different components of selenium?
How do you identify an object using selenium?
What is the use of javascriptexecutor?
What are the annotations used in testng?
Why testers should opt for selenium and not qtp?
Can you explain the framework which you have used in your selenium project?
How you can use recovery scenario with selenium?
What is a relative xpath?
What is the difference between TESTNG and JUNIT? List out Annotations?
1 Answers HCL, Quovantis Technologies,
What does a right-pointing green triangle at the beginning of a command in side indicate?
How to input text in the text box using selenium webdriver?
In which format does source view shows your script in selenium ide?