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 is the latest Selenium tool?
Explain how you can handle colors in web driver?
List out the technical challenges with selenium?
How to get an attribute value using selenium webdriver?
Can you run the tests registered with Selenium IDE in other browsers?
Write a code snippet to perform right-click an element in webdriver.
What is the difference between “/” and “//” in xpath?
How to test ajax application with selenium?
Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please
What is the use of deselect all () method?
How can we fetch title of the page in selenium?
How many types of waits in selenium?
Tell us can you write the code to double click an element in selenium?
What is the main difference between the close() and quit() methods?
What are the limitations of selenium?