Clusteer
Github Repo
  • ⚡Introduction
  • 🎉Support
  • Getting Started
    • 🏆Benchmarks
    • 🚀Installation
      • Docker
      • Laravel Sail (Docker)
    • ✨Starting the server
    • 🙌Basic example
  • Client commands
    • 🍘Cookies
    • 🐞Debug console
    • 👨‍🎨 Screenshot
    • 🧵Request metadata
    • ⌚Waiting for requests
  • Actions
    • #️⃣ Keyboard commands
    • 🐁Mouse commands
  • Advanced
    • 🎀Custom Script
    • 👩‍🚀 Custom Actions
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Actions

#️⃣ Keyboard commands

Keyboard commands are available by specifying the query string for the element, as well as the text and the delay between keystrokes.

Note: the actions defined here are running before the request ends, so you may specify actions to run during the render.

// Note: 100 ms between keystrokes

$clusteer = Clusteer::to('https://example.com')
    ->type('[email protected]', 'input[type="email"]', 100)
    ->get();

Press & Press Down/Up

For convenience, you perhaps might want some extra combination of keys, so this is where press down and press up actions come into place:

// Press down Ctrl and with it, press only once 'V' to paste,
// then release Ctrl.

$clusteer = Clusteer::to('https://example.com')
    ->pressDown('Ctrl')
    ->press('V')
    ->pressUp('Ctrl')
    ->get();

PreviousWaiting for requestsNextMouse commands

Last updated 3 years ago

Was this helpful?