Mouse class
Constructors
Mouse (AsyncRequestClient _client , AppiumWebDriverHandler _handler )
Properties
hashCode
→ int
The hash code for this object.
no setter override
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
click ([MouseButton button = MouseButton.primary ])
→ Future <void >
Click any mouse button (at the coordinates set by the last moveTo).
doubleClick ()
→ Future <void >
Double-clicks at the current mouse coordinates (set by moveTo).
down ([MouseButton button = MouseButton.primary ])
→ Future <void >
Click and hold any mouse button (at the coordinates set by the last
moveTo command).
dragFromTo ({int ? xStart , int ? yStart , int ? xEnd , int ? yEnd , bool absolute = false })
→ Future <void >
Drag the mouse.
From xStart
and yStart
coordinates
To xEnd
and yEnd
coordinates
e.g. await driver.mouse.dragFromTo(xStart: 0, yStart: 0, xEnd: 0, yEnd: 800);
moveTo ({AppiumWebElement ? element , int ? xOffset , int ? yOffset , bool absolute = false })
→ Future <void >
Move the mouse.
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 ])
→ Future <void >
Releases the mouse button previously held (where the mouse is currently at).