Table of Contents

Interface IMouse

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides methods representing basic mouse actions.

public interface IMouse

Methods

Click(ICoordinates)

Clicks at a set of coordinates using the primary mouse button.

void Click(ICoordinates where)

Parameters

where ICoordinates

An ICoordinates describing where to click.

ContextClick(ICoordinates)

Clicks at a set of coordinates using the secondary mouse button.

void ContextClick(ICoordinates where)

Parameters

where ICoordinates

A ICoordinates describing where to click.

DoubleClick(ICoordinates)

Double-clicks at a set of coordinates.

void DoubleClick(ICoordinates where)

Parameters

where ICoordinates

A ICoordinates describing where to double-click.

MouseDown(ICoordinates)

Presses the primary mouse button at a set of coordinates.

void MouseDown(ICoordinates where)

Parameters

where ICoordinates

A ICoordinates describing where to press the mouse button down.

MouseMove(ICoordinates)

Moves the mouse to the specified set of coordinates.

void MouseMove(ICoordinates where)

Parameters

where ICoordinates

A ICoordinates describing where to move the mouse to.

MouseMove(ICoordinates, int, int)

Moves the mouse to the specified set of coordinates.

void MouseMove(ICoordinates where, int offsetX, int offsetY)

Parameters

where ICoordinates

A ICoordinates describing where to click.

offsetX int

A horizontal offset from the coordinates specified in where.

offsetY int

A vertical offset from the coordinates specified in where.

MouseUp(ICoordinates)

Releases the primary mouse button at a set of coordinates.

void MouseUp(ICoordinates where)

Parameters

where ICoordinates

A ICoordinates describing where to release the mouse button.