Class: PointerEvents

PointerEvents

Contains browser pointer events.


new PointerEvents(selector, page)

Creates a new pointer events instance.

Parameters:
Name Type Description
selector string

CSS selector of DOM element.

page Page

Page with element.

Source:

Methods


_getDriver()

Helper to get webdriver.

Source:
Returns:

webdriver instance

Type
object

<async> cancel(x, y)

Cancel pointer on element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> down(x, y)

Presses pointer down on element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> enter(x, y)

Enters pointer to element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> leave(x, y)

Leaves pointer from element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> move(x, y)

Moves pointer to element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> out(x, y)

Moves out pointer from element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> over(x, y)

Moves pointer over element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>

<async> up(x, y)

Unpresses pointer up on element by selector.

Parameters:
Name Type Description
x number

x coordinate.

y number

y coordinate.

Source:
Returns:
Type
Promise.<void>