Summary
Reflect WebDriver errors in exit codes so AI agents can detect failures.
Priority: Highest
Current Problem
Almost all functions return exit code 0, even when an element is not found.
AI agents rely on $? and set -e for flow control — without proper exit codes, they cannot detect failures.
Proposal
# Reflect WebDriver errors in exit codes
find_element 'id' 'nonexistent' # => exit 1
navigate_to 'invalid' # => exit 1
Summary
Reflect WebDriver errors in exit codes so AI agents can detect failures.
Priority: Highest
Current Problem
Almost all functions return exit code 0, even when an element is not found.
AI agents rely on
$?andset -efor flow control — without proper exit codes, they cannot detect failures.Proposal