com.atlassian.webdriver.utils
Class MouseEvents

java.lang.Object
  extended by com.atlassian.webdriver.utils.MouseEvents

public class MouseEvents
extends Object

Implements mouse events that are not handled correctly in WebDriver atm.


Method Summary
static org.openqa.selenium.WebElement hover(org.openqa.selenium.By by, org.openqa.selenium.WebDriver driver)
          Fires a mouse over event on an element that matches the By
static org.openqa.selenium.WebElement hover(org.openqa.selenium.WebElement el, org.openqa.selenium.WebDriver driver)
          Fires a mouse over event on the specified element.
static org.openqa.selenium.WebElement mouseout(org.openqa.selenium.By by, org.openqa.selenium.WebDriver driver)
          Fires a mouse out event on the element that matches the By.
static org.openqa.selenium.WebElement mouseout(org.openqa.selenium.WebElement el, org.openqa.selenium.WebDriver driver)
          Fires a mouse out event on the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hover

public static org.openqa.selenium.WebElement hover(org.openqa.selenium.By by,
                                                   org.openqa.selenium.WebDriver driver)
Fires a mouse over event on an element that matches the By

Parameters:
by - the element matcher to apply the hover to.
Returns:
the WebElement that the hover was triggered on.

hover

public static org.openqa.selenium.WebElement hover(org.openqa.selenium.WebElement el,
                                                   org.openqa.selenium.WebDriver driver)
Fires a mouse over event on the specified element.

Parameters:
el - The element to fire the hover event on.
Returns:
the WebElement the hover was triggered on.

mouseout

public static org.openqa.selenium.WebElement mouseout(org.openqa.selenium.By by,
                                                      org.openqa.selenium.WebDriver driver)
Fires a mouse out event on the element that matches the By.

Parameters:
by - the element matcher to apply the hover to.
Returns:
the WebElement the mouseout was fired on.

mouseout

public static org.openqa.selenium.WebElement mouseout(org.openqa.selenium.WebElement el,
                                                      org.openqa.selenium.WebDriver driver)
Fires a mouse out event on the element.

Parameters:
el - the element to fire the mouseout event on.
Returns:
the WebElement the mouseout was fired on.


Copyright © 2014 Atlassian. All rights reserved.