adspace


How do you click on a menu item in a drop down menu?

Answer Posted / Ravi Awasthi

To click on a menu item in a dropdown menu in Selenium, first find the WebElement representing the dropdown (usually using findElementByXPath or findElementById), and then use the click() method on the WebElement representing the menu item.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s selenese?

920


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197


Have you created any framework?

1038


Do you know how to locate a link using its text in selenium?

985


what will be the first salary and what will be the hike in the salary?

929