Skip to content

MoveMouseParams

Parameters for Lib.moveMouse.

Import:

import type { MoveMouseParams } from 'obsidian-integration-testing';

Signature:

export interface MoveMouseParams

Properties

PropertyTypeDescription
window?WindowThe Obsidian window to move the pointer in: the main window or a popout. Each Obsidian window is its own Electron web contents with its own pointer, and the coordinates are in the named window's viewport.

Mobile has no pointer to move, so Lib.moveMouse throws there whatever this is.
xnumberThe x coordinate (web-contents DIP) to move the pointer to.
ynumberThe y coordinate (web-contents DIP) to move the pointer to.

Links to this page: