Skip to content

selenium.actions.pointer

W3C pointer input source types, move origins, and button constants.

PointerType

enum PointerType: string;

Pointer input source types.

Mouse

Mouse

Mouse pointer, the W3C default.

Pen

Pen

Pen or stylus pointer.

Touch

Touch

Touch pointer.

Origin

enum Origin: string;

Move origins for pointer actions.

Viewport

Viewport

Relative to the top-left corner of the viewport, the W3C default.

Pointer

Pointer

Relative to the pointer's current position.

Button

enum Button: int;

Button constants for pointer actions.

Primary

Primary

The primary button, usually the left mouse button.

Auxiliary

Auxiliary

The auxiliary button, usually the middle mouse button or wheel click.

Secondary

Secondary

The secondary button, usually the right mouse button.