Quick learner
Quick learner

Reputation: 709

How to handle MouseOver Event by Selenium Web Driver

I am using Selenium webdriver to automate my web application.I haveenter image description here to handle mouse over event in my web application.So how to handle these.For clearafication screenshot is attached. Acyually i have to select that particular by moving the mouse from left to right.Plz help me.

Regards, Abhishek

Upvotes: 0

Views: 3344

Answers (1)

Nathan Merrill
Nathan Merrill

Reputation: 8386

You need to use the Actions API.

It will look something like this:

Actions actions  = new Actions(driver);
actions.moveToElement(driver.findElement(By.someSelector()))
actions.otherActions();
actions.perform();

http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/interactions/Actions.html

Upvotes: 3

Related Questions