agentsclimarketplace

Testdriver performing actions

Skill testdriverai/testdriverai/ai/skills/testdriver-performing-actions

Click, type, hover, scroll and more with TestDriverFrom its SKILL.md

Install
npx -y skills add testdriverai/testdriverai --skill testdriver-performing-actions

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.6 KB, 343 tokens by cl100k_base, as published. Nobody here has run it

<!-- Generated from performing-actions.mdx. DO NOT EDIT. -->

Performing Actions

TestDriver provides a variety of actions you can perform, like clicking, typing, hovering, and scrolling. For a full list, see the API Reference.

// Clicking
await testdriver.find('submit button').click();
await testdriver.find('file item').doubleClick();
await testdriver.find('text area').rightClick();

// Typing
await testdriver.find('email input').type('[email protected]');
await testdriver.find('password input').type('secret', { secret: true });

// Keyboard shortcuts
await testdriver.pressKeys(['enter']);
await testdriver.pressKeys(['ctrl', 'c']);

// Hovering
await testdriver.find('dropdown menu').hover();

// Scrolling
await testdriver.scroll('down', 500);
await testdriver.scrollUntilText('Footer content');

// Waiting
await testdriver.wait(2000); // Wait 2 seconds for animation/state change

// Extracting information from screen
const price = await testdriver.extract('the total price');
const orderNumber = await testdriver.extract('the order confirmation number');

Chaining Actions

TestDriver supports method chaining for cleaner code:

// Chain find() with actions
const button = await testdriver.find('submit button').click();

Or save element reference for later use:

const button = await testdriver.find('submit button');
await button.click();

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.