Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
5.4 KiB
5.4 KiB
UDM Pro Browser Automation Status
Last Updated: 2026-01-14
Status: Partially Automated - Login and Navigation Working
✅ Completed Features
1. Authentication
- ✅ Login Working: Successfully authenticates with
unifi_apiaccount - ✅ Password:
L@kers2010$$(verified working) - ✅ Error Handling: Comprehensive error detection and logging
2. Navigation
- ✅ Login Page: Successfully navigates and fills credentials
- ✅ Routing Page: Successfully navigates to
Settings → Routing & Firewall → Static Routes - ✅ Screenshot Capture: Automatic screenshots at each step for debugging
3. Script Features
- ✅ Pause Mode: Can pause at key points for manual intervention (
PAUSE_MODE=true) - ✅ Dry Run Mode: Test mode that doesn't make changes (
DRY_RUN=true) - ✅ Comprehensive Logging: Detailed logs at each step
- ✅ Error Recovery: Attempts multiple strategies for each action
- ✅ Improved Detections: Enhanced selectors for buttons and form fields
⚠️ Current Issue
Add Button Detection
The script successfully reaches the Static Routes page but cannot automatically find the "Add" button to create a new route.
Possible Reasons:
- The Add button may be in a different location (toolbar, table header, etc.)
- The button may be dynamically loaded after page render
- The button may have different selectors than expected
- The UI structure may differ from expected patterns
Buttons Found on Page:
- Button 0: "UDM Pro" (Site Switcher)
- Button 1: Empty text, icon-only
- Button 2: Empty text, icon-only (most likely candidate)
- Button 4-5: "Submit Support Ticket"
- Button 6: "Go back to Home"
- Button 7-8: Empty text, icon-only (disabled)
🔧 Usage
Basic Usage
cd /home/intlc/projects/proxmox
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
HEADLESS=true node scripts/unifi/configure-static-route-playwright.js
With Visible Browser (for debugging)
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
HEADLESS=false node scripts/unifi/configure-static-route-playwright.js
With Pause Mode (manual intervention)
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
PAUSE_MODE=true HEADLESS=false node scripts/unifi/configure-static-route-playwright.js
Dry Run (testing)
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \
DRY_RUN=true HEADLESS=true node scripts/unifi/configure-static-route-playwright.js
📸 Screenshots
Screenshots are automatically saved to scripts/unifi/screenshots/:
01-login-page.png- Initial login page02-credentials-filled.png- After filling credentials03-after-login.png- After successful login05-routing-page.png- Routing settings page06-static-routes-page.png- Static routes section07-before-add-button.png- Before searching for Add buttonerror-state.png- If an error occurs
🎯 Next Steps
Option 1: Manual Completion (Recommended)
- Run script with visible browser:
UNIFI_USERNAME=unifi_api UNIFI_PASSWORD='L@kers2010$$' \ HEADLESS=false node scripts/unifi/configure-static-route-playwright.js - When script reaches Static Routes page, manually click the "Add" button
- Fill in the form:
- Name: Route to VLAN 11
- Destination: 192.168.11.0/24
- Gateway: 192.168.11.1
- Click Save
- Script will verify the route was created
Option 2: Improve Button Detection
- Review screenshots in
scripts/unifi/screenshots/06-static-routes-page.png - Identify the exact selector for the Add button
- Update the script with the correct selector
- Re-run the script
Option 3: Use API Alternative
Since the API doesn't support static routes, consider:
- Using the script to navigate to the page
- Manually completing the form
- Or using the script as a helper tool
📋 Configuration
The script is configured to create:
- Name: Route to VLAN 11
- Destination Network: 192.168.11.0/24
- Gateway: 192.168.11.1
To modify, edit the ROUTE_CONFIG object in the script.
🔍 Troubleshooting
Login Fails
- Verify credentials:
unifi_api/L@kers2010$$ - Check account is local (not SSO)
- Ensure 2FA is disabled
Cannot Find Add Button
- Review screenshots to see actual UI
- Run with
HEADLESS=falseto see what's happening - Check if button is in a different location (toolbar, table header, etc.)
Form Not Filling
- Check screenshots to see form structure
- Verify form field selectors match actual UI
- Run with
PAUSE_MODE=trueto manually verify
📝 Script Improvements Made
- ✅ Added pause functionality for manual intervention
- ✅ Improved button detection with 30+ selectors
- ✅ Enhanced form field detection
- ✅ Better error handling and recovery
- ✅ Comprehensive logging at each step
- ✅ Screenshot capture for debugging
- ✅ Support for disabled buttons
- ✅ Form detection after button click
- ✅ Navigation recovery if wrong button clicked
🎉 Success Criteria
The script will be fully automated when it can:
- ✅ Log in (DONE)
- ✅ Navigate to Static Routes page (DONE)
- ⚠️ Find and click Add button (IN PROGRESS)
- ⚠️ Fill form fields (READY - waiting for form)
- ⚠️ Click Save button (READY - waiting for form)
- ⚠️ Verify route was created (READY)
Last Updated: 2026-01-14