testdriver:mouse-down

Press and hold the mouse button for drag operations in UI automation.

238|34|Updated Aug 25, 2024
One-click install
npx skills add https://github.com/testdriverai/testdriverai --skill testdriver-mouse-down
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testdriver:mouse-down
Source: https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver%3Amouse-down
Command: npx skills add https://github.com/testdriverai/testdriverai --skill testdriver-mouse-down

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pressing the mouse button without releasing it enables drag operations and advanced gesture workflows in UI automation.

Core Features & Use Cases

  • Hold and drag: press the mouse button and keep it held while moving to target areas.
  • Gesture-ready: supports drag-and-drop interactions across web and desktop apps.
  • Use Case: simulate dragging an item from one pane to another during automated tests.

Quick Start

Initiate a drag by calling element.mouseDown() on an Element or ai.mouseDown() with a selector.

Frequently Asked Questions about testdriver:mouse-down

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I press and hold a mouse button for drag-and-drop UI automation?

To press and hold a mouse button for drag-and-drop UI automation, use a mouseDown action to press the button without releasing it. This enables you to hold the button while moving to target areas across web and desktop apps.

What is a mouseDown action used for in e2e-testing?

A mouseDown action is used in e2e-testing to press the mouse button without releasing it, enabling drag operations and advanced gesture workflows. It simulates holding an item before moving it to another pane.

Can I use a string selector to initiate a drag operation on web and desktop apps?

Yes, you can use a string selector to initiate a drag operation on web and desktop apps. You can call the action with a single string selector for AI client calls or apply it directly to an Element.

What's the best way to simulate dragging an item from one pane to another during automated tests?

The best way to simulate dragging an item from one pane to another is to use a mouseDown action to hold the button while moving to the target area. This gesture-ready approach supports drag-and-drop interactions across platforms.

Why does my drag operation fail to hold the mouse button correctly?

Your drag operation might fail if the mouseDown action is immediately released or not properly paired with a move. Ensure you press the button without releasing it, keeping it held while moving to the target pane.