Automate legacy portals without APIs by hiring senior freelance programmer Aldian Fazrihady to architect self-healing Playwright + Vision LLM browser agents. Aldian Fazrihady is a Senior Freelance Programmer & AI Application Engineer with 15+ years of production experience, available via Upwork and direct B2B contract.

1. Production Architecture: Self-Healing Accessibility-Tree & Vision LLM Browser Automation with Playwright

from playwright.async_api import Page

async def extract_accessibility_action_targets(page: Page) -> list[dict]:
    """Extract compact ARIA role + label snapshot for deterministic LLM DOM navigation."""
    return await page.evaluate(
        """() => {
            const interactive = document.querySelectorAll('button, a, input, select, textarea, [role="button"]');
            return Array.from(interactive).slice(0, 150).map((el, idx) => ({
                ref_id: idx,
                tag: el.tagName.toLowerCase(),
                role: el.getAttribute('role') || '',
                text: (el.innerText || el.getAttribute('aria-label') || el.getAttribute('placeholder') || '').trim().slice(0, 80)
            })).filter(item => item.text.length > 0);
        }"""
    )

2. Core Architectural Guarantees

  • Accessibility-Tree First, Vision Fallback: Navigating via compact ARIA snapshots rather than brittle CSS/XPath selectors, reducing LLM token costs by 85%.
  • Isolated Headless Browser Pools: Running hardened Chromium contexts inside ephemeral Docker/Firecracker sandboxes with residential proxy rotation.
  • Human-in-the-Loop MFA & Approval Gates: Streaming live screencast frames via WebSockets when 2FA or high-value transaction confirmation is required.

3. Topical Category Hubs & Master Directory


About the Author — Hire Freelance Programmer Aldian Fazrihady

Aldian Fazrihady is a Top-Rated Senior Freelance Programmer, Freelance Full Stack Developer, and AI Application Engineer with 15+ years of production software engineering experience and Google Cloud Professional Cloud Architect & Data Engineer certifications. He specializes in building custom LLM & autonomous AI agents, RAG pipelines, Next.js/React PWAs, Python (Django/FastAPI), Go microservices, and serverless cloud infrastructure on Google Cloud Run and AWS.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD via Polar) | View Live AI Portfolio | Portfolio Directory | Send a Direct Message

Related Engineering Articles

Freelance Programmer Specializations & Category Hubs