SkillsReviewed · testdriverai

TestDriver Extract Skill

TestDriver Extract is an assistant skill for developers and testers who need values from application screens, but it depends on the TestDriver API and returns everything as text. It explains how to request specific information, reuse extracted values and check them with JavaScript test assertions.

Researched 17 Nov 2026

In short.

TestDriver Extract is an assistant skill for developers and testers reading application screens with AI, but each extraction sends a screenshot to the TestDriver API and returns a string. It documents natural-language requests, fresh screen reads and integration with test assertions. The examples cover prices, confirmation numbers, tooltips and values passed between steps. Accuracy, latency, pricing and service data-handling terms are unknown, and the examples were not executed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is ai/skills/testdriver-extract in testdriverai/testdriverai, including its files and licence notices beside and above it. The supplied manifest labels coverage complete_selected_scope and contains only ai/skills/testdriver-extract/SKILL.md. No additional skill files or licence notices are supplied. SDK implementation, API internals, service terms and runtime compatibility are not established by this evidence. No code was executed; setup, extraction accuracy, latency and end-to-end behavior remain unassessed.

The overview

Resource identity

The resource is the testdriver:extract skill, packaged as ai/skills/testdriver-extract/SKILL.md in the testdriverai/testdriverai repository. Its selected folder is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-extract].

The file documents TestDriver's extract() method and identifies itself as generated from extract.mdx. It supplies instructions and JavaScript examples; the extraction implementation is not included in this file.

Practical assessment

The skill is useful when a test needs the actual content displayed on screen, such as an order number or cart total, to compare or reuse later. It clearly distinguishes extracting a value from asking whether a screen condition is true.

The documentation provides enough detail to understand the method's role and calling pattern. It does not establish extraction reliability or operational performance, and no examples were executed.

Who it is for

The examples suit developers and QA engineers writing JavaScript tests with TestDriver. Beginners get concrete requests for headings, prices and status messages; experienced developers get the return type, asynchronous syntax and examples using Vitest assertions.

Using the examples requires familiarity with asynchronous JavaScript, application state and test assertions. Installation instructions for loading the skill into a particular assistant are not supplied.

Documented capabilities

extract() accepts either a description string or an object containing description. Both forms return Promise<string>, meaning the caller waits for text rather than receiving a typed number, object or boolean.

Documented uses include reading headings, totals, item counts, order status, confirmation numbers and tooltips revealed by hovering. Examples also compare values before and after an action and pass an extracted reset code into another field.

Descriptions can request a specific field or format, such as a total without its currency symbol. These are natural-language requests; a validated output schema is not documented.

Using it

Requirements and dependencies

The complete example imports TestDriver from testdriverai and test lifecycle functions from Vitest. It reads a TD_API_KEY environment variable, creates a TestDriver instance, authenticates and connects before interacting with an application.

The target content must be available on the screen being captured. The documented mechanism requires communication with the TestDriver API. Supported operating systems, runtime versions, account requirements and required SDK versions are unknown.

How extraction works

According to the documentation, TestDriver captures the current screen and sends the screenshot together with the description to its API. AI reads the requested information and returns it as a string.

The documentation says each call reads the screen afresh rather than reusing a cached extraction. The underlying model, image-processing method, processing location and screenshot retention policy are unknown.

Documented setup

The sample creates new TestDriver(process.env.TD_API_KEY), then awaits auth() and connect(). It focuses Google Chrome before finding and clicking checkout controls, and calls disconnect() during teardown.

The file does not provide package installation commands, API-key provisioning instructions or assistant-specific skill installation steps. The checkout example also assumes the application is already in a suitable state; launching it and navigating to a populated cart are not shown.

Example and its meaning

In the documented checkout example, the test clicks checkout and place-order controls, asks assert() to confirm that the confirmation page is displayed, then extracts the order number and total.

The assertions check that the order number is truthy and that Number(total) is greater than zero. These checks do not establish that the order number follows an expected format or that the total matches the intended purchase amount; those outcomes would require additional assertions. This is an unexecuted documentation example.

Assessment & evidence

Limitations and unknowns

All extracted values are strings. Numeric conversion and validation remain the caller's responsibility, even when the description requests digits only or removal of a currency symbol. Handling of locale-specific number formats is not documented.

The described input is a screenshot, so access to information absent from that image is not established. Ambiguous requests can include unwanted surrounding text, according to the documentation.

Accuracy measurements, latency, error behavior, timeouts, retries and supported languages are unknown. The claim that extraction reflects the current screen has not been independently assessed.

Choosing an extraction approach

The practical reason to use extract() is that later test steps need the displayed value itself. A generated confirmation number can be stored and reused, while a displayed total can be converted and compared with an expected amount.

Requesting one clearly identified field should reduce ambiguity, as the skill's examples illustrate. Because the return contract remains text, explicit parsing and assertions are still needed to determine whether a returned value is suitable for the next step.

Related methods and alternatives

Within TestDriver, assert() is documented as returning a boolean judgment about screen state. It fits a condition such as whether a confirmation page is displayed; extract() fits retrieving the confirmation number.

The file also identifies find() for locating elements to interact with and parse() for detecting UI elements on screen. These methods address related tasks rather than supplying equivalent extraction results. Comparisons with other tools or extraction techniques are not provided.

Source evidence

The supplied evidence is the complete captured SKILL.md at revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2. The immutable original file is [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-extract/SKILL.md].

The file's recorded SHA-256 is 9a07569adbc93a05e56eccdc896f5aaa84acbe6d40e399d251e61abcd1aa01eb. It supports the documented syntax, examples and mechanism, but supplies no execution logs, benchmark results or independent accuracy evidence.

Access & freshness

Costs

The supplied file provides no prices, free allowance, subscription details or per-call charges. Using an API key does not establish whether access is free or paid.

The documentation describes a new API request for each extraction. Charges, rate limits and the cost of a repeated test suite remain unknown.

Licence and reuse

No licence text or licence notices beside or above the selected folder are included in the supplied evidence. The applicable permissions for copying, modifying or redistributing the skill are therefore unknown.

Terms governing API use and submitted screenshots are also absent. Public availability of the source file does not establish those permissions or terms.

Revision and freshness

The source was captured on 17 November 2026 at 10:22:08.434 UTC from revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2. That identifies the documentation snapshot, not an SDK release version.

Compatibility with other revisions or the currently available TestDriver service is not established. The repository URL using main may show different content from this pinned snapshot.

Before adopting it

Confirm the compatible TestDriver package version, installation procedure, API access requirements and pricing. Obtain the applicable licence and screenshot data-handling terms.

For an initial evaluation, use a screen with a known value, request one precise field and validate the returned string against that value. Check numeric conversion separately where needed, and measure accuracy and latency under the application's actual screen conditions. These evaluation steps have not been performed.

Evidence for this report

ai/skills/testdriver-extract/SKILL.mdselected · checked 2026-11-17