| name | description |
|---|---|
rodney |
This skill uses the rodney CLI tool for browser automation. Use this for all browser based testing and automation. |
Rodney provides Chrome automation from the command line.
It is a Go CLI tool that drives a persistent headless Chrome instance using the rod browser automation library. Each command connects to the same long-running Chrome process, making it easy to script multi-step browser interactions from shell scripts or interactive use.
It is already installed on this machine.
Run rodney --help, for command line options.
See the README for instruction on use.
Here is a shell script example of a single rodney session.
# Wait for page to load and extract data
rodney start
rodney open https://example.com
rodney waitstable
title=$(rodney title)
echo "Page: $title"
# Conditional logic based on element presence
if rodney exists ".error-message"; then
rodney text ".error-message"
fi
# Loop through pages
for url in page1 page2 page3; do
rodney open "https://example.com/$url"
rodney waitstable
rodney screenshot "${url}.png"
done
rodney stop