|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
|---|
PageElementJavascript click()
PageElement.click()
in that this is invoking the Javascript 'click' event as opposed to simulating user click action.
PageElementJavascript doubleClick()
PageElementJavascript mouseup()
PageElementJavascript mousedown()
PageElementJavascript mouseover()
PageElementJavascript mousemove()
PageElementJavascript mouseout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||