28 lines
812 B
Markdown
28 lines
812 B
Markdown
|
|
# Quick Start: Finding the Add Button
|
||
|
|
|
||
|
|
## Fastest Method
|
||
|
|
|
||
|
|
Run the visual analyzer and test buttons interactively:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd /home/intlc/projects/proxmox
|
||
|
|
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
|
||
|
|
node scripts/unifi/analyze-page-visually.js
|
||
|
|
```
|
||
|
|
|
||
|
|
1. Script will highlight all buttons in RED
|
||
|
|
2. Enter button number to test (1, 2, 3, etc.)
|
||
|
|
3. When form appears, script will show the selector
|
||
|
|
4. Update `configure-static-route-playwright.js` with that selector
|
||
|
|
|
||
|
|
## Alternative: Let Script Wait for You
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd /home/intlc/projects/proxmox
|
||
|
|
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
|
||
|
|
HEADLESS=false PAUSE_MODE=true \
|
||
|
|
node scripts/unifi/configure-static-route-playwright.js
|
||
|
|
```
|
||
|
|
|
||
|
|
Script will pause at Static Routes page. Manually click Add, and script will continue automatically.
|