moveTo method
Future<void>
moveTo({
- AppiumWebElement? element,
- int? xOffset,
- int? yOffset,
- bool absolute = false,
Move the mouse.
If element is specified and xOffset and yOffset are not, will move
the mouse to the centre of the element.
If xOffset and yOffset are specified, will move the mouse that distance
from its current location.
If all three are specified, will move the mouse to the offset relative to
the top-left corner of the element.
All other combinations of parameters are illegal.
Special notes for W3C, if the destination is out of the current viewport, an 'MoveTargetOutOfBounds' exception will be thrown.
Implementation
Future<void> moveTo(
{AppiumWebElement? element,
int? xOffset,
int? yOffset,
bool absolute = false}) =>
_client.send(
_handler.mouse.buildMoveToRequest(
elementId: element?.id,
xOffset: xOffset,
yOffset: yOffset,
absolute: absolute),
_handler.mouse.parseMoveToResponse);