Skip to content

galiprandi/job-seeker / .agents/skills/browser-automation

browser-automation

Verified

Control a dedicated browser via agent-browser (Vercel). Use when automating web apps, scraping authenticated sites, filling forms, or navigating SPAs. Do NOT use for desktop apps or API-only integrations.

FileKindSize
SETUP.mdmarkdown3.0 KB
SKILL.mdskill md39.4 KB
references/agent-browser.mdmarkdown4.6 KB
references/api-capture.mdmarkdown1.8 KB
references/ats-patterns.mdmarkdown4.5 KB
references/audio-transcription.mdmarkdown2.4 KB
references/custom-combobox.mdmarkdown5.0 KB
references/efficiency-patterns.mdmarkdown2.6 KB
references/golden-rules.mdmarkdown5.7 KB
references/key-patterns.mdmarkdown4.4 KB
references/network-console.mdmarkdown1.2 KB
references/parallel-agents.mdmarkdown6.2 KB
references/profile-management.mdmarkdown6.3 KB
references/token-extraction.mdmarkdown2.8 KB
scripts/README.mdmarkdown6.0 KB
scripts/agent-browser.template.jsonconfig333 B
scripts/browser-share.jsscript20.0 KB
scripts/browser.jsexecutablescript17.1 KB
scripts/teams.jsscript7.1 KB
scripts/test-find-guide.jsscript6.3 KB
scripts/transcribe-audio.jsscript3.6 KB
scripts/viewer.htmlother8.6 KB
sites/CONTRIBUTING.mdmarkdown11.0 KB
sites/LEARN.mdmarkdown5.4 KB
sites/afip_gob_ar/guide.mdmarkdown9.0 KB
sites/app_web3forms_com/guide.mdmarkdown7.1 KB
sites/buk_co/guide.mdmarkdown1.5 KB
sites/calendar_google_com/calendar-deeplink.mdmarkdown1.9 KB
sites/calendly_com/guide.mdmarkdown1001 B
sites/careers_epam_com/guide.mdmarkdown4.4 KB
sites/dash_cloudflare_com/guide.mdmarkdown7.7 KB
sites/discord_com/guide.mdmarkdown9.9 KB
sites/discord_com/login-flow.mdmarkdown3.2 KB
sites/docs_google_com/guide.mdmarkdown7.3 KB
sites/facebook_com/guide.mdmarkdown9.8 KB
sites/gmail_com/guide.mdmarkdown35.6 KB
sites/google_com/guide.mdmarkdown1.1 KB
sites/google_com/login-flow.mdmarkdown3.3 KB
sites/google_home_com/guide.mdmarkdown2.1 KB
sites/google_maps_com/guide.mdmarkdown8.4 KB
sites/groq_com/signup-apikey.mdmarkdown6.6 KB
sites/humand_co/guide.mdmarkdown6.9 KB
sites/jira_com/guide.mdmarkdown10.8 KB
sites/linkedin_com/guide.mdmarkdown27.4 KB
sites/linkedin_com/outreach-strategy.mdmarkdown1.2 KB
sites/linkedin_com/posting.mdmarkdown14.0 KB
sites/linkedin_com/voyager-api.mdmarkdown8.1 KB
sites/mercadolibre_com/guide.mdmarkdown4.5 KB
sites/onstrider_com/draftjs-editor-fill.mdmarkdown2.3 KB
sites/onstrider_com/guide.mdmarkdown11.3 KB
sites/onstrider_com/react-autocomplete-inputs.mdmarkdown4.0 KB
sites/outlook_office_com/calendar-deeplink.mdmarkdown2.2 KB
sites/outlook_office_com/guide.mdmarkdown14.0 KB
sites/property_directory/guide.mdmarkdown3.7 KB
sites/reddit_com/guide.mdmarkdown16.2 KB
sites/teams_com/guide.mdmarkdown10.3 KB
sites/teamtailor_com/guide.mdmarkdown6.5 KB
sites/vea_com_ar/guide.mdmarkdown8.8 KB
sites/whatsapp_com/guide.mdmarkdown21.3 KB
sites/whatsapp_com/login-flow.mdmarkdown3.0 KB
sites/whatsapp_com/message-extraction.mdmarkdown5.7 KB
sites/whatsapp_com/voice-notes.mdmarkdown7.1 KB
sites/workatastartup_com/guide.mdmarkdown1.5 KB

references/custom-combobox.md

View on GitHub
# Custom Comboboxes & Portal Dropdowns

Resilient strategy for dropdown widgets that are neither native `<select>` nor standard ARIA comboboxes — the kind used by modern ATS and enterprise forms (EPAM careers, Oracle CX, etc.). Commands below run via `node .agents/skills/browser-automation/scripts/browser.js exec <cmd>` (agent-browser; validated patterns unverified after migration).

## Why these widgets defeat naive automation

1. **Transient portal** — options render in a `div` appended to `document.body` only while the dropdown is open. A blur event (or the next CLI call) unmounts them, so a second command finds an empty DOM.
2. **No standard roles** — many render options as `<div>`/`<li>` without `role=option`/`role=listbox`, so `[role=option]` queries return `[]` even when the list is visible.
3. **Filter-on-type, not select-on-type** — `fill` sets the input text but does not commit a selection; `Enter` alone grabs whatever is highlighted (often the first option), producing silent wrong values (validated: typing "Upper" then Enter selected "Elementary (A1)").
4. **Focus loss between calls** — each `exec` is a separate process. `click` in one call + `press ArrowDown` in the next works *only* if the widget kept focus and the list stayed mounted. It sometimes does — inconsistently. Never rely on it.

## Strategy ladder (try in order)

### 1. Atomic open-inspect-pick (first resort, most reliable)

Open the dropdown and read the options **inside the same eval**, before anything can blur:

```js
(async () => {
  const combo = [...document.querySelectorAll('[role=combobox], input')]
    .find(e => /english/i.test(e.getAttribute('aria-label') || ''));
  combo.focus();
  combo.dispatchEvent(new PointerEvent('pointerdown', {bubbles: true}));
  combo.dispatchEvent(new PointerEvent('pointerup', {bubbles: true}));
  combo.dispatchEvent(new MouseEvent('click', {bubbles: true}));
  await new Promise(r => setTimeout(r, 800));
  // Options live in a portal at document root — scan leaf nodes, not roles
  const opts = [...document.querySelectorAll('body *')]
    .filter(e => e.children.length === 0 && e.offsetHeight > 0
                 && e.innerText && e.innerText.trim().length < 60)
    .filter(e => /intermediate|advanced|fluent|elementary|basic|native/i.test(e.innerText));
  const pick = opts.find(e => /upper.?intermediate|b2/i.test(e.innerText));
  if (pick) { pick.dispatchEvent(new MouseEvent('mousedown', {bubbles: true}));
              pick.dispatchEvent(new MouseEvent('mouseup', {bubbles: true}));
              pick.dispatchEvent(new MouseEvent('click', {bubbles: true})); }
  await new Promise(r => setTimeout(r, 400));
  return JSON.stringify({options: opts.map(e => e.innerText.trim()), picked: !!pick});
})()
```

Key points:
- `focus()` + real PointerEvent/MouseEvent sequence — many widgets only open on trusted-looking events.
- Scan **all leaf elements** under `body` for text matches — portal options may have no role attributes at all.
- Verify `picked` in the same call.

### 2. fill + verify (autocomplete-style combos)

When typing filters the option list (EPAM Country/City combos work this way):

```bash
exec click @eN             # open (ref from snapshot -i)
exec fill @eN "Argent"     # filter — use partial, unambiguous text
exec press Enter           # commits the highlighted match
```

Then **immediately** read back the rendered chip/value:

```js
eval: document.body.innerText.slice(idx, idx+150)
// expect: "Country* | option Argentina, selected." — if empty, retry
```

### 3. Keyboard on open list (blind fallback)

Only when options can't be read at all. After opening the list, `ArrowDown` cycles options and `Enter` commits. Verify the resulting value and correct with a second attempt if it landed wrong.

**Never loop blindly** — each attempt must end with a read-back verification; wrong selections are silent and stay wrong.

### 4. Re-focus before every keyboard burst

If `press` keys seem to do nothing, the focus moved. Re-click the combobox, then send keys. If clicking toggles the dropdown closed, use `eval` to check `aria-expanded` or look for the portal before deciding whether to click.

## Verification is mandatory

A combobox "set" is only real when the **committed value** (chip, tag, or readout text like `option X, selected`) appears in `innerText` — not when the input holds text, not when no error fired. Wrong committed values pass silently into the submitted form.

## Anti-patterns (validated failures)

- ❌ `press ArrowDown ×N + Enter` in a separate call after `click` — works sometimes, fails often; the open state doesn't survive process boundaries reliably.
- ❌ `fill` with the exact option text + `Enter` — commits the highlighted option, which may not be your text.
- ❌ Querying `[role=option]` after the dropdown is open via a previous call — the portal is already gone.
- ❌ Querying near the combobox element — options render at document root, not inside the widget.
- ❌ Assuming `aria-label` on the input matches the field label — check the surrounding field wrapper too.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall