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.cr

Instance Method Summary

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]).


[View source]
def click(x : Int32, y : Int32) : Nil #

[View source]
abstract def dblclick(x : Int32, y : Int32, options : DblclickOptions?) : Nil #

[View source]
def dblclick(x : Int32, y : Int32) : Nil #

[View source]
abstract def down(options : DownOptions?) : Nil #

Dispatches a mousedown event.


[View source]
def down : Nil #

[View source]
abstract def move(x : Int32, y : Int32, options : MoveOptions?) : Nil #

Dispatches a mousemove event.


[View source]
def move(x : Int32, y : Int32) : Nil #

[View source]
abstract def up(options : UpOptions?) : Nil #

Dispatches a mouseup event.


[View source]
def up : Nil #

[View source]