module Playwright::Mouse
Overview
The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
Every page
object has its own Mouse, accessible with page.mouse.
Defined in:
playwright/mouse.crInstance Method Summary
-
#click(x : Int32, y : Int32, options : ClickOptions?) : Nil
Shortcut for
mouse.move(x, y[, options])
,mouse.down([options])
,mouse.up([options])
. - #click(x : Int32, y : Int32) : Nil
-
#dblclick(x : Int32, y : Int32, options : DblclickOptions?) : Nil
Shortcut for
mouse.move(x, y[, options])
,mouse.down([options])
,mouse.up([options])
,mouse.down([options])
andmouse.up([options])
. - #dblclick(x : Int32, y : Int32) : Nil
-
#down(options : DownOptions?) : Nil
Dispatches a
mousedown
event. - #down : Nil
-
#move(x : Int32, y : Int32, options : MoveOptions?) : Nil
Dispatches a
mousemove
event. - #move(x : Int32, y : Int32) : Nil
-
#up(options : UpOptions?) : Nil
Dispatches a
mouseup
event. - #up : Nil
Instance Method Detail
abstract
def click(x : Int32, y : Int32, options : ClickOptions?) : Nil
#
Shortcut for mouse.move(x, y[, options])
, mouse.down([options])
, mouse.up([options])
.
abstract
def dblclick(x : Int32, y : Int32, options : DblclickOptions?) : Nil
#
Shortcut for mouse.move(x, y[, options])
, mouse.down([options])
, mouse.up([options])
, mouse.down([options])
and mouse.up([options])
.
abstract
def move(x : Int32, y : Int32, options : MoveOptions?) : Nil
#
Dispatches a mousemove
event.