Skip to content

AI Agent Support: Proper Exit Codes #52

Description

@Rasukarusan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions