Mouse hover on image using Selenium WebDriver

120 views
Skip to first unread message

Abu Hamzah

unread,
Apr 3, 2013, 11:06:17 AM4/3/13
to seleniu...@googlegroups.com

    FF version 19.0.2
    Selenium WebDriver version: 2.31.2.0

How to verify that image hover is working using Webdriver? So I have 5 stars and each stars represent different title and I'm looking for a way to hover over those stars.

I used the below code but I dont see hovering over the image.... 

I have used following code snippets to  

    Actions builder = new Actions(driver);
    WebElement tagElement = driver.findElement(By.CssSelector("#divctl00....."));
    builder.moveToElement(tagElement).build().perform();

Mike Riley

unread,
Apr 3, 2013, 4:41:59 PM4/3/13
to seleniu...@googlegroups.com
Did you expect the physical cursor to move?

What do you expect to happen when it does the hover and how are you going to test for success  or failure?

Mike
Reply all
Reply to author
Forward
0 new messages