Skip to content

ClickElementParams

Parameters for CommonArguments.clickElement.

Import:

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

Signature:

export interface ClickElementParams

Properties

PropertyTypeDescription
button?MouseButtonThe mouse button to press.
elementHTMLElementThe element to click. The pointer is moved to its center. This is a live renderer DOM node — the callback runs in-renderer, so no cross-process serialization is needed (same as TypeIntoEditorParams.editor).
modifiers?readonly Modifier[]The modifier keys to hold, using Obsidian's Modifier names. 'Mod' resolves per-platform (Cmd on macOS, Ctrl elsewhere).

Links to this page: