Remote Playwright Browser
Deploy and connect to a Playwright browser running on an OpenShift cluster.
Arguments
Parse $ARGUMENTS into at most two values before invoking Bash:
- Arg 1: KUBECONFIG path (default:
/tmp/k) - Arg 2: Namespace (default:
playwright)
Step 1: Deploy and Connect
bash .claude/scripts/remote-playwright.sh up "$KUBECONFIG_PATH" "$NAMESPACE"
The script handles everything: version resolution, deployment, port-forwarding, and CLI connection. Wait for the === Ready === output.
Step 2: Verify
npx @playwright/cli goto https://example.com
npx @playwright/cli snapshot
npx @playwright/cli screenshot
Available Commands
npx @playwright/cli goto <url>— navigatenpx @playwright/cli snapshot— accessibility treenpx @playwright/cli screenshot— save PNGnpx @playwright/cli click <ref>— click element by ref from snapshotnpx @playwright/cli fill <ref> <text>— fill inputnpx @playwright/cli video-start/video-stop— record sessionnpx @playwright/cli tab-list/tab-new/tab-select— manage tabs
Teardown
bash .claude/scripts/remote-playwright.sh down "$KUBECONFIG_PATH" "$NAMESPACE"