RE: how to handle mouse hover dropdowns click event in selenium webdriver

Answered

fdsf

surekha Train Asked on September 23, 2014 in Selenium WebDriver.
Add Comment
2 Answers

You can Actions class for this.  When you move your mouse on a particular item the it displays all the dropdowns under the item .  To handle such situations you  can locate the element  and perfom().

Actions act = new Actions(driver);
act.moveToElement(locate elemente ).build(). PErform();
//here the mouse will move to the element and you san see the dropdown
Thread.sleep(1000);
//if you wnat click the dropdown item then locate it and click it
act.moveToElement(element location).click().perform();

try this ..

Doctor Answered on September 23, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.