Sunday, 30 June 2013

MouseOver action in webdriver

Following is the example of MouseOver using webdriver api. Some time it is necessary to do mouse over to perform certain action.
Ex. To open a menu in web application



Following is the sample code :

 Action mouseAction=new Action(driver);
 mouseAction.moveToElement( By.id("menu"));
 mouseAction.perform();



No comments:

Post a Comment