up method
Future
up(
- MouseButton button, {
- PageLoaderElement? eventTarget,
- ClickOption? clickOption,
override
Release button
on the mouse at its current location with clickOption
.
If eventTarget
is specified, PageLoader will attempt to fire the
corresponding mouse events on that target, otherwise it will fire the
events on the target that is under the current mouse location.
clickOption
is only used for Html.
Implementation
@override
Future up(MouseButton button,
{PageLoaderElement? eventTarget, ClickOption? clickOption}) async {
if (clickOption != null) {
throw UnsupportedError(
'WebDriver PageLoaderMouse does not support `clickOption` '
'parameter.');
}
if (eventTarget is WebDriverPageLoaderElement) {
return _fireEvent(eventTarget, 'mouseup', button);
} else {
_driver.mouse.up(button);
}
}