Skip to content

Add iframe support for click/fill/type commands #1

Description

@mehmetnadir

Description

Currently, click, fill, and type commands only work on the main frame. Elements inside <iframe> are not accessible.

Expected behavior

cdpilot click --frame "#my-iframe" "button.submit"

Implementation hints

  • Use Page.getFrameTree CDP method to list frames
  • Use Runtime.evaluate with contextId for the target frame
  • Add optional --frame <selector> flag to interaction commands

Files to modify

  • src/cdpilot.pycmd_click, cmd_fill, cmd_type

Good first issue — straightforward CDP API usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions