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 |
How will you use selenium to upload a file?
Write the code to double click an element in selenium?
What are the uses of findelement() and findelements()?
Tell me can we use selenium rc for tests driving on two different browsers on one operating system without selenium grid?
Tell me how can we maximize browser window in selenium?
What are junit annotations?
What are the challenges and limitations of selenium webdriver?
How can we handle pop-ups in rc?
Enlist the components of selenium.
Have you created any framework?
What are the different types of locators in Selenium?
What is the difference between “/” and “//” in xpath?