Mouse class

Constructors

Mouse(SyncRequestClient _client, WebDriverHandler _handler)

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

click([MouseButton button = MouseButton.primary]) → void
Click any mouse button (at the coordinates set by the last moveTo).
doubleClick() → void
Double-clicks at the current mouse coordinates (set by moveTo).
down([MouseButton button = MouseButton.primary]) → void
Click and hold any mouse button (at the coordinates set by the last moveTo command).
hide({int w3cXOffset = 100, int w3cYOffset = 0}) → void
Moves the mouse away to hide its effect, like hover over element.
moveTo({WebElement? element, int? xOffset, int? yOffset, bool absolute = false}) → void
Move the mouse.
moveToElementCenter(WebElement element, {int? xOffset, int? yOffset}) → void
Moves to element, with an offset of xOffset and yOffset based on the center of element.
moveToElementTopLeft(WebElement element, {int? xOffset, int? yOffset}) → void
Moves to element, with an offset of xOffset and yOffset based on the top left corner of element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
up([MouseButton button = MouseButton.primary]) → void
Releases the mouse button previously held (where the mouse is currently at).

Operators

operator ==(Object other) bool
The equality operator.
override