galiprandi/job-seeker / .agents/skills/browser-automation
browser-automation
VerifiedControl 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.
sites/onstrider_com/draftjs-editor-fill.md
View on GitHub# DraftJS editor fill — onstrider.com
**Date:** 2026-08-17
**Type:** shortcut
**Site:** app.onstrider.com
## What was expected
DraftJS editors (`div[role=textbox]` with class `public-DraftEditor-content` or `notranslate`) are typically difficult to fill programmatically. The expectation from prior experience with LinkedIn's tiptap editor and similar rich-text widgets is that `fill` would fail or cause the editor to close, requiring a fallback to `eval` with `innerHTML` + event dispatching or clipboard paste.
## What was found
`fill` works directly on the DraftJS editor used in Strider's work experience description field. No fallback needed.
```bash
# Find the editor via find
node .agents/skills/browser-automation/scripts/browser.js exec find label "Description"
# Result: textbox "Description" [ref=eXXX]
# Fill directly
node .agents/skills/browser-automation/scripts/browser.js exec fill <ref> "<long text content>"
```
The text appears in the editor and persists after save. The character counter (`NNN/800`) updates correctly.
If `fill` misbehaves, the next semantic-level option is `exec keyboard inserttext "<text>"` after clicking the editor to focus it — `inserttext` inserts text without synthesizing key events, which suits Draft.js-style editors (unverified after agent-browser migration).
This may not generalize to all DraftJS implementations — DraftJS version, wrapper configuration, and focus management vary between sites. But it's worth trying `fill` first before falling back to `eval` patterns.
## Reproduction
1. Navigate to `https://app.onstrider.com/profile`
2. Click "Add new" in the Work experience section
3. Fill company name, title, and other fields to reach the description editor
4. Run `node .agents/skills/browser-automation/scripts/browser.js exec find label "Description"` to get the textbox ref
5. Run `node .agents/skills/browser-automation/scripts/browser.js exec fill <ref> "<text>"` — text appears in the editor
6. Save the work experience — text persists
## Suggested guide update
Add a note to `references/key-patterns.md` under "Custom components need eval":
**DraftJS editors:** Try `fill` first. Unlike tiptap/Quill editors, DraftJS editors on some sites (Strider) accept `fill` directly without requiring `innerHTML` hacks or clipboard paste. If `fill` fails, fall back to the `eval` pattern with `innerHTML` + `input` event.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Unverified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |