testdriver:scroll

Automate web page and element scrolling in TestDriver end-to-end tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual scrolling in UI tests is fragile and time-consuming. This Skill provides deterministic scrolling control to navigate pages and locate elements reliably.

Core Features & Use Cases

  • Scroll in all directions (up, down, left, right) using mouse or keyboard
  • ScrollUntilText and scrollUntilImage helpers to find content
  • Works across web apps and desktop-like interfaces for end-to-end testing

Quick Start

Install TestDriver and begin calling testdriver.scroll in your Vitest tests to automate page scrolling.

Frequently Asked Questions about testdriver:scroll

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

FAQPage Schema
How do I automate page scrolling in end-to-end tests?

You can automate page scrolling in end-to-end tests using TestDriver to apply controlled vertical or horizontal navigation. It provides input validation, error handling, and safe fallbacks to scroll pages reliably without manual intervention.

How do I scroll until specific text or an image appears during UI testing?

To scroll until specific text or an image appears during UI testing, you can use the scrollUntilText and scrollUntilImage helper functions. These specialized helpers navigate through web apps until the target content is located.

Can I use both mouse and keyboard methods to scroll web apps in Vitest?

Yes, you can switch between mouse and keyboard methods to scroll web apps in Vitest. The Skill satisfies functional requirements for direction, amount, and method parameters across both input types.

What's the best way to handle horizontal scrolling in automated UI tests?

The best way to handle horizontal scrolling in automated UI tests is using a deterministic scrolling control tool like TestDriver. It supports left and right directions across desktop-like interfaces and web apps.

Why does manual scrolling make e2e-testing fragile?

Manual scrolling makes e2e-testing fragile because it lacks deterministic control, causing timing issues and missed elements. Automated scrolling applies text- or image-based waits to navigate pages and locate content reliably.