Skip to content

browser-act-cli: support dynamic React filechooser uploads #24

Description

@jianweilinfs1983-gif

We are using browser-act-cli 1.4.2 with chrome-direct on macOS.

The current upload command cannot handle React components that dynamically trigger a native filechooser.

Required flow:
fileChooserOpened → trusted click → setFiles(filePath) → DOM verification

Strict requirements:

  • same browser context
  • same tab
  • same CDP target
  • same URL
  • no refresh
  • no new page
  • no session close
  • no save or submit

Successful upload must verify:

  • .has-url is present
  • img src is non-empty
  • img src changed from its previous value
  • the upload prompt disappeared

The PyPI package only contains compiled Cython modules and provides no sdist or source repository.

Could you provide:

  1. Access to the browser-act-cli source repository;
  2. The commit/tag corresponding to version 1.4.2; or
  3. An official build supporting dynamic filechooser uploads?

Expected source locations:

  • browser_act_cli/session/actions/upload.py
  • browser_act_cli/session/action_specs.py
  • browser_act_cli/commands/upload.py
  • active-page driver/CDP integration layer

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions