Skip to content

Clicking an invisible element with agent-browser seems to have no effect, yet the command doesn't throw an error? #1044

@songxianfeng

Description

@songxianfeng
  Here is my scenario: When interacting with page elements, the snapshot command lists all elements, but some are not visible in the Chrome window until I scroll. When I run agent-browser click @e3 on such an element, it completes without error, but nothing happens on the page.

  I tried using agent-browser set viewport 2400 2000 to enlarge the browser window, but it only scaled up the page content (zoomed in) instead of actually expanding the window size.

Is it possible to make the click command fail if the element is not visible? Alternatively, is there a command to maximize the Chrome window?

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