Skip to content

Add --timeout flag to all interaction commands #2

Description

@mehmetnadir

Description

Commands like click, fill, wait should support a --timeout flag for custom wait times.

Current behavior

Hardcoded timeouts (e.g., cmd_wait has 5s default).

Expected behavior

cdpilot click "#slow-button" --timeout 10
cdpilot wait ".dynamic-content" --timeout 30

Implementation hints

  • Parse --timeout N from args in main()
  • Pass timeout to cdp_send() calls
  • Default: keep current values

Good first issue — small, well-scoped change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions