Agent skill

webapp-testing-error-handling

Sub-skill of webapp-testing: Error Handling.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/development/webapp-testing/error-handling

SKILL.md

Error Handling

Error Handling

Common Errors

Error Cause Solution
TimeoutError Element not found in time Use explicit waits or increase timeout
Page closed Browser closed prematurely Check cleanup order in fixtures
Connection refused Server not running Start server before tests
Element not visible Hidden by CSS/JS Wait for visibility state
Target closed Navigation during action Wait for navigation to complete

Debugging Tips

python
# Increase default timeout
page.set_default_timeout(60000)  # 60 seconds

# Take screenshot on failure
try:
    page.click("#submit")
except Exception as e:
    page.screenshot(path="error_screenshot.png")
    raise

# Print page HTML for debugging
print(page.content())

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results