testdriver:click

Perform element-based and coordinate-based click actions in automated tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables precise UI clicking in automated tests by supporting both element-based and coordinate-based interactions, reducing flaky tests and manual clicking.

Core Features & Use Cases

  • Element-based clicking with actions: 'click', 'double-click', 'right-click', 'hover', 'mouseDown', 'mouseUp'.
  • Coordinate-based clicking at specific screen coordinates with an optional action.
  • Cross-context reliability works across web and desktop interfaces, with basic error handling for missing elements and invalid coordinates.

Quick Start

Directly call testdriver.click on a discovered element or pass coordinates to perform a click.

Frequently Asked Questions about testdriver:click

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

FAQPage Schema
How do I automate clicking on UI elements in automated tests?

You can automate clicking on UI elements by using element-based interactions or passing specific screen coordinates. This approach supports click, double-click, right-click, hover, mouseDown, and mouseUp actions across web and desktop interfaces to reduce test flakiness.

When should I use coordinate-based clicking instead of element-based clicking in UI testing?

Use coordinate-based clicking when interacting with canvas elements or dynamically rendered interfaces lacking stable locators. Element-based clicking is preferred when reliable UI selectors are available to ensure precise and stable automated test execution.

Does this UI automation clicking method work across both web and desktop applications?

Yes, this UI automation clicking method works across both web and desktop contexts. It provides cross-context reliability for element and coordinate-based interactions, including basic error handling for missing UI elements and invalid screen coordinates.

What mouse actions are supported for element-based interactions in automated tests?

Supported mouse actions for element-based interactions include click, double-click, right-click, hover, mouseDown, and mouseUp. These actions enable precise simulation of user behavior during automated UI testing workflows.

How do I handle missing UI elements or invalid coordinates during automated test clicking?

Handle missing UI elements or invalid coordinates using built-in basic error handling provided by the automation tool. This mechanism prevents silent failures during coordinate-based or element-based clicking in web and desktop testing contexts.