browser-edge-cases
Skill11k starsChanged 4 months agoApache-2.0View on GitHub
SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
Trending
Quiet since October.about the whole repository
Who's talking about aden-hive/hive
- SeCuReDmE-main-dev/aden_case_study“Phase 2: Neutrosophic worker report integration”GitHub · May 8, 2026 · 1 reactions
- SeCuReDmE-main-dev/aden_case_study“Phase 1: Neutrosophic scoring core”GitHub · May 7, 2026 · 1 reactions
- midnghtsapphire/revvel-standards“Anything worth using in our test harness or the whole thing?”GitHub · Apr 20, 2026 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.aden-hive.hive: v0.11.0 → refs/tags/v0.11.0”GitHub · Oct 3, 2026
- ProSkillsMD/proskills“[Candidate] aden-hive/hive/core/framework/skills/_default_skills/note-taking - hive.note-taking”GitHub · Sep 27, 2026
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub (26 times).
On GitHub · 26
- May 8, 2026Phase 2: Neutrosophic worker report integration — SeCuReDmE-main-dev/aden_case_study1 reaction · 2 comments
- May 7, 2026Phase 1: Neutrosophic scoring core — SeCuReDmE-main-dev/aden_case_study1 reaction · 2 comments
- Apr 20, 2026Anything worth using in our test harness or the whole thing? — midnghtsapphire/revvel-standards1 reaction · 1 comment
- Oct 3, 2026agent-skills.github.aden-hive.hive: v0.11.0 → refs/tags/v0.11.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/note-taking - hive.note-taking — ProSkillsMD/proskills0 reactions · 2 comments
21 more on GitHub
- Sep 27, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/image-generation - hive.image-generation — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/error-recovery - hive.error-recovery — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/context-preservation - hive.context-preservation — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/colony-progress-tracker - hive.colony-progress-tracker — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] aden-hive/hive/core/framework/skills/_default_skills/browser-automation - hive.browser-automation — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] aden-hive/hive/.claude/skills/triage-issue - triage-issue — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] aden-hive/hive/.claude/skills/test-reporting - test-reporting — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] aden-hive/hive/.claude/skills/browser-edge-cases - browser-edge-cases — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 24, 2026agent-skills.github.aden-hive.hive: init at 0.11.0 — sudosubin/agents.nix0 reactions
- Sep 24, 2026Suggest: aden-hive/hive — haggaishachar/awesomemap0 reactions · 1 comment
- Sep 22, 2026Track 0: Sujit Nirmal - track record entry — neugence/whipscribe-buildathon0 reactions · 4 comments
- Jun 3, 2026[Add] Hive (aden-hive/hive) — PyTorchKR/landscape0 reactions
- May 19, 2026Harden token budget enforcement and deterministic retry behavior — PauloBoaventura/hivee0 reactions · 1 comment
- Apr 24, 2026Vouch setup — triggerdotdev/trigger.dev0 reactions · 1 comment
- Apr 1, 2026Issue 6885 — Saurabh1374/hive0 reactions · 1 comment
- Mar 27, 2026fix: harden Codex backend parity across runtime and validation — VasuBansal7576/hive0 reactions · 2 comments
- Mar 27, 2026fix: harden Codex backend parity across runtime and validation — VasuBansal7576/hive0 reactions · 1 comment
- Mar 27, 2026fix: harden Codex backend parity across runtime and validation — VasuBansal7576/hive0 reactions · 1 comment
- Mar 15, 2026Found a possible duplicate of #2996: Both issues propose QuickBooks integration with detailed specifications for the same financial management and reporting features. While this issue provides a higher-level scope focused on nine core functions and complementary analytics integration, #2996 (assigne — Palace999945/markdoc-starter0 reactions
- Mar 13, 2026Add Hive to Open-Source AI Models & Frameworks — best-of-ai/best-of-ai0 reactions · 1 comment
- Mar 12, 2026docs: add Microsoft Graph tool README — sachinbabuantony/hive0 reactions
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- queen-colony-debugSkill
- test-reportingSkill
- triage-issueSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 157
Fix: Wait for overlay to disappear, or use JavaScript click.
- Distinctive: line 163
Detection: If CDP click doesn't trigger handler but manual click works.
- Distinctive: line 165
Fix: Use JavaScript click as primary:
- Distinctive: line 180
Add timeout to snapshot operation
- Distinctive: line 195
Fix: Wait for specific selector after navigation:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Browser Tool Edge Cases
Standard Operating Procedure for debugging and fixing browser automation failures on complex websites.
When to Use This Skill
browser_interact(action="scroll")succeeds but page doesn't movebrowser_interact(action="left_click")succeeds but no action triggeredbrowser_interact(action="type")text disappears or doesn't workbrowser_snapshothangs or returns stale contentbrowser_navigateloads wrong content
SOP: Debugging Browser Tool Failures
Phase 1: Reproduce & Isolate
1. Create minimal test case demonstrating failure
2. Test against simple site (example.com) to verify tool works
3. Test against problematic site to confirm issueQuick isolation test:
# Test 1: Does the tool work at all?
await browser_navigate(tab_id, "https://example.com")
result = await browser_interact(action="scroll", tab_id=tab_id, scroll_direction="down", scroll_amount=100)
# Should work on simple sites
# Test 2: Does it fail on the problematic site?
await browser_navigate(tab_id, "https://linkedin.com/feed")
result = await browser_interact(action="scroll", tab_id=tab_id, scroll_direction="down", scroll_amount=100)
# If this fails but example.com works → site-specific edge casePhase 2: Analyze Root Cause
Step 2a: Check console for errors
console = await browser_console(tab_id)
# Look for: CSP violations, React errors, JavaScript exceptionsStep 2b: Inspect DOM structure
html = await browser_html(tab_id)
snapshot = await browser_snapshot(tab_id)
# Look for:
# - Nested scrollable divs (overflow: scroll/auto)
# - Shadow DOM roots
# - iframes
# - Custom widgetsStep 2c: Identify the pattern
| Symptom | Likely Cause | Check |
| Scroll doesn't move | Nested scroll container | Look for overflow: scroll divs |
| Click no effect | Element covered | Check getBoundingClientRect vs viewport |
| Type clears | Autocomplete/React | Check for event listeners on input; try a type action with no selector |
| Snapshot hangs | Huge DOM | Check node count in snapshot |
| Snapshot stale | SPA hydration | Wait after navigation |
Phase 3: Implement Multi-Layer Fix
Pattern: Always have fallbacks
async def robust_operation(tab_id):
# Method 1: Primary approach
try:
result = await primary_method(tab_id)
if verify_success(result):
return result
except Exception:
pass
# Method 2: CDP fallback
try:
result = await cdp_fallback(tab_id)
if verify_success(result):
return result
except Exception:
pass
# Method 3: JavaScript fallback
return await javascript_fallback(tab_id)Pattern: Always add timeouts
# Bad - can hang forever
result = await browser_snapshot(tab_id)
# Good - fails fast with useful error
try:
result = await browser_snapshot(tab_id, timeout_s=10.0)
except asyncio.TimeoutError:
# Handle timeout gracefully
result = await fallback_snapshot(tab_id)Phase 4: Verify Fix
1. Run against problematic site → should work
2. Run against simple site → should still work (regression check)
3. Document in registry.mdPattern Library
P1: Nested Scrollable Containers
Sites: LinkedIn, Twitter/X, any SPA with scrollable feeds
Detection:
// Find largest scrollable container
const candidates = [];
document.querySelectorAll('*').forEach(el => {
const style = getComputedStyle(el);
if (style.overflow.includes('scroll') || style.overflow.includes('auto')) {
const rect = el.getBoundingClientRect();
if (rect.width > 100 && rect.height > 100) {
candidates.push({el, area: rect.width * rect.height});
}
}
});
candidates.sort((a, b) => b.area - a.area);
return candidates[0]?.el;Fix: Dispatch scroll events at container's center, not viewport center.
P2: Element Covered by Overlay
Sites: Modals, tooltips, SPAs with loading overlays
Detection:
const rect = element.getBoundingClientRect();
const centerX = rect.left + rect.width / 2;
const centerY = rect.top + rect.height / 2;
const topElement = document.elementFromPoint(centerX, centerY);
return topElement === element || element.contains(topElement);Fix: Wait for overlay to disappear, or use JavaScript click.
P3: React Synthetic Events
Sites: React SPAs, modern web apps
Detection: If CDP click doesn't trigger handler but manual click works.
Fix: Use JavaScript click as primary:
element.click();P4: Huge DOM / Accessibility Tree
Sites: LinkedIn, Facebook, Twitter (feeds with 1000s of nodes)
Detection:
document.querySelectorAll('*').length > 5000Fix:
- Add timeout to snapshot operation
- Truncate tree at 2000 nodes
- Fall back to DOM-based snapshot if accessibility tree too large
P5: SPA Hydration Delay
Sites: React, Vue, Angular SPAs after navigation
Detection:
// Check if React app has hydrated
document.querySelector('[data-reactroot]') ||
document.querySelector('[data-reactid]')Fix: Wait for specific selector after navigation:
await browser_navigate(tab_id, url, wait_until="load")
await browser_interact(action="wait", tab_id=tab_id, wait_for_selector='[data-testid="content"]', timeout_ms=5000)P6: Shadow DOM
Sites: Components using Shadow DOM, Lit elements
Detection:
document.querySelectorAll('*').some(el => el.shadowRoot)Fix: Pierce shadow root:
function queryShadow(selector) {
const parts = selector.split('>>>');
let node = document;
for (const part of parts) {
if (node.shadowRoot) {
node = node.shadowRoot.querySelector(part.trim());
} else {
node = node.querySelector(part.trim());
}
}
return node;
}Quick Reference
| Issue | Primary Fix | Fallback |
| Scroll not working | Find scrollable container | Mouse wheel at container center |
| Click no effect | JavaScript click() | CDP mouse events |
| Type clears | use_insert_text=False (per-keystroke) | Use a type action (Input.insertText) |
| Snapshot hangs | Add timeout_s | DOM snapshot fallback |
| Stale content | Wait for selector | Increase wait_until timeout |
| Shadow DOM | Pierce selector | JavaScript traversal |
References
- registry.md - Full list of known edge cases
- scripts/test_case.py - Template for testing new cases
- BROWSER_USE_PATTERNS.md - Implementation patterns from browser-use
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

