public interface Mouse
Modifier and Type | Method and Description |
---|---|
default Session |
click(String selector)
Click on the specified element.
|
default Session |
click(String selector,
Object... args)
Click on the specified element.
|
Session |
getThis() |
default Session |
move(double x,
double y)
Dispatches a mousemove event.
|
default Session click(String selector)
selector
- css or xpath selectordefault Session click(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringdefault Session move(double x, double y)
x
- X coordinate of the event relative to the main frame's viewport in CSS pixels.y
- Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.Session getThis()
Copyright © 2017, 2019–2019 WebFolder OÜ. All rights reserved.