In short.
TestDriver Scroll is an instruction skill for developers and coding assistants automating interface tests, but its distance settings and setup example need clarification before use. It explains scrolling, focus preparation, keyboard fallbacks and infinite-scroll patterns. The parameter reference describes pixels while examples describe clicks, horizontal examples exceed the listed directions, and the complete example initializes a different variable from the one it uses. Runtime behavior, SDK compatibility, costs and licence permissions are unknown from the supplied evidence.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is ai/skills/testdriver-scroll in testdriverai/testdriverai, together with applicable licence notices beside and above it. The supplied manifest contains only ai/skills/testdriver-scroll/SKILL.md at the pinned revision. No additional folder files or surrounding licence notices are available in the evidence. The SDK implementation, generated-source file scroll.mdx and external documentation are outside the supplied material. No code was executed; runtime behavior, compatibility and performance remain unverified.
The overview
identity
The resource is ai/skills/testdriver-scroll/SKILL.md in testdriverai/testdriverai. Its declared name is testdriver:scroll, and it identifies itself as generated from scroll.mdx. It supplies instructions for using TestDriver scrolling methods; the underlying SDK implementation is not included.
The original folder is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-scroll]. The captured file is pinned to revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2.
assessment
This is a useful narrow reference for adding scrolling to an existing TestDriver test, especially when input focus interferes with the action. Its troubleshooting advice is concrete, but conflicting parameter descriptions and a variable initialization error mean the examples need review before adoption. No execution results establish their reliability.
users
The strongest fit is developers or coding assistants already working with TestDriver who need to reach footer links, reveal additional feed items or navigate a horizontal gallery. Beginners need familiarity with JavaScript async calls and an existing TestDriver setup. Experienced developers receive usage patterns, but no implementation details or compatibility matrix.
capabilities
The documented interface is testdriver.scroll(direction, options), with an optional amount setting. The file describes scrolling the page or active element, preparing focus, using Page Down or Page Up, and combining repeated scrolling with later find or assert calls.
The parameter list names up and down. Examples also use right and left, so horizontal scrolling is illustrated but its actual SDK support is not established by this file.
Using it
requirements
The examples assume JavaScript and an initialized TestDriver instance. The complete example imports testdriverai, reads TD_API_KEY, and calls auth() and connect(). It uses Vitest hooks and focuses Google Chrome; the file does not establish either Vitest or Chrome as universal requirements.
Scrolling requires focus on the intended page or frame. Supported operating systems, runtime versions, SDK versions and service requirements are unspecified.
mechanism
Mouse-wheel scrolling is described as the default. Keyboard movement uses the separate pressKeys() method with pagedown or pageup. The scroll method returns Promise<void>, so its documented return value does not report distance moved or confirm that new content appeared.
The infinite-scroll examples repeat a scroll action with fixed delays, then inspect or assert page content. Automatic detection of loading completion and error behavior are not documented.
setup
The illustrated lifecycle constructs a TestDriver instance using TD_API_KEY, authenticates, connects, focuses the application and disconnects afterward. Installation commands, account provisioning and skill-loading instructions are absent.
The complete example declares testdriver but assigns the new instance to client, then calls methods on testdriver. Those names need to be made consistent before the example can initialize the instance it uses.
example
With an authenticated, connected instance and the intended page active, the source suggests await testdriver.pressKeys(['escape']); after typing, followed by await testdriver.scroll('down');. Clicking a non-interactive area is another suggested focus remedy.
For a footer-navigation test, scrolling is followed by finding the Privacy Policy link, clicking it and asserting that the destination is displayed. If mouse scrolling fails, the documented fallback is await testdriver.pressKeys(['pagedown']);. These are documented patterns, not demonstrated execution results.
Assessment & evidence
limitations
The amount parameter is described as pixels with a default of 300, while examples describe small values as clicks. That leaves the intended unit unclear. Horizontal examples also conflict with the direction list, and the complete setup example has the client/testdriver mismatch.
Focus can prevent scrolling. The file describes keyboard movement as generally covering a page and being less precise, but supplies no measurements. Nested-container targeting, frame selection, supported applications and behavior during asynchronous loading remain unspecified.
reasoning
The practical value is the connection between focus preparation, scrolling and subsequent element or content checks. This helps explain why a scroll command may fail after typing into an input. The documentation inconsistencies make exact distances and horizontal movement less certain than the basic vertical-scrolling pattern.
alternatives
Within TestDriver, the file offers pressKeys(['pagedown']) and pressKeys(['pageup']) as alternatives when mouse-wheel scrolling fails or for desktop applications. It describes this approach as more compatible but less precise; comparative reliability is not demonstrated. No evidence compares this skill with other automation frameworks.
evidence
The evidence is one complete SKILL.md containing frontmatter, a method reference, troubleshooting guidance and JavaScript examples. The original captured file is [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-scroll/SKILL.md].
The SDK implementation, runtime traces, benchmark results and applicable licence notices are not included. The variable mismatch and conflicting parameter descriptions are visible in the text; actual SDK behavior remains unverified.
Access & freshness
costs
The file provides no subscription prices, usage charges, quotas or free-tier terms. Cost is unknown. The TD_API_KEY example establishes a credential-based setup pattern, not a billing model.
rights
No licence statement appears in the supplied SKILL.md, and no surrounding licence notices are included in the evidence. Permissions to reuse, modify or redistribute the skill are unknown. Public availability on GitHub does not establish those permissions.
freshness
The file was captured on 17 November 2026 at revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2. That identifies the documented snapshot, not its publication date or current SDK compatibility. The file specifies no SDK release or last-updated date.
actions
Before integrating, resolve the amount units and accepted directions against the intended SDK version, and correct the instance-variable mismatch. Establish focus on the intended page or frame, then verify the desired element or content after scrolling; a completed scroll call alone does not establish content availability.
Obtain the applicable licence terms and TestDriver pricing before committing to reuse or ongoing operation. Validate the chosen scrolling pattern in the target application, especially for horizontal containers and content that loads asynchronously.
