com.atlassian.pageobjects.elements
Interface PageElementMouseJavascript


public interface PageElementMouseJavascript

Encapsulates Javascript mouse events of the PageElement.

PageElement.isPresent() of the corresponding page element must return true before any of the methods of this interface are invoked, otherwise NoSuchElementException will be raised.

NOTE: all events invoked via this class are pure Javascript events and don't simulate the real user-browser interaction. E.g. in real interaction a mouse click would trigger 'mousedown', 'mouseup' and 'click' events, whereas the click() in this class only produces the 'click' event.

Use this class primarily as workaround when standard methods in PageElement simulating user interaction don't produce desired results.

Since:
2.1

Method Summary
 PageElementJavascript click()
          Dispatches a click event to the associated element.
 PageElementJavascript doubleClick()
          

Dispatches a 'double click' event to the associated element.

 PageElementJavascript mousedown()
          

Dispatches a 'mousedown' event to the associated element.

 PageElementJavascript mousemove()
          Dispatches a 'mousemove' event to the associated element.
 PageElementJavascript mouseout()
          Dispatches a 'mouseout' event to the associated element.
 PageElementJavascript mouseover()
          Dispatches a 'mouseover' event to the associated element, commonly referred to as 'hover'.
 PageElementJavascript mouseup()
          

Dispatches a 'mouseup' event to the associated element.

 

Method Detail

click

PageElementJavascript click()
Dispatches a click event to the associated element. This is different to PageElement.click() in that this is invoking the Javascript 'click' event as opposed to simulating user click action.

Returns:
the associated Javascript object

doubleClick

PageElementJavascript doubleClick()

Dispatches a 'double click' event to the associated element.

Returns:
the associated Javascript object

mouseup

PageElementJavascript mouseup()

Dispatches a 'mouseup' event to the associated element.

Returns:
the associated Javascript object

mousedown

PageElementJavascript mousedown()

Dispatches a 'mousedown' event to the associated element.

Returns:
the associated Javascript object

mouseover

PageElementJavascript mouseover()
Dispatches a 'mouseover' event to the associated element, commonly referred to as 'hover'.

Returns:
the associated Javascript object

mousemove

PageElementJavascript mousemove()
Dispatches a 'mousemove' event to the associated element.

Returns:
the associated Javascript object

mouseout

PageElementJavascript mouseout()
Dispatches a 'mouseout' event to the associated element.

Returns:
the associated Javascript object


Copyright © 2014 Atlassian. All rights reserved.