Workflows¶
Create and run reusable automation scripts.
Create Workflow¶
From Session¶
From YAML File¶
Workflow Format¶
name: login-flow
description: Log into the application
steps:
- navigate: "https://app.example.com/login"
- wait: "input#email"
- type:
selector: "input#email"
text: "user@example.com"
- type:
selector: "input#password"
text: "${PASSWORD}" # Environment variable
- click: "button[type=submit]"
- wait:
text: "Welcome"
Run Workflow¶
# Execute workflow
domguard workflow run "login-flow"
# Dry run (preview without executing)
domguard workflow run "login-flow" --dry-run
Managing Workflows¶
List Workflows¶
View Workflow¶
Delete Workflow¶
Variables¶
Use environment variables in workflows:
Run with:
Workflow Steps¶
| Step | Example |
|---|---|
navigate |
navigate: "https://..." |
click |
click: "button.submit" |
type |
type: { selector: "input", text: "..." } |
wait |
wait: "div.loaded" |
wait_text |
wait: { text: "Success" } |
screenshot |
screenshot: "step1.png" |
scroll |
scroll: { down: 500 } |
Use Cases¶
- Login flows - Reusable authentication
- Data entry - Form filling automation
- Testing - Repeatable test scenarios
- Scraping - Multi-page data collection