Skip to content

[Bug] Selector "@e18" matched 8 elements. Run 'snapshot' to get updated refs, or use a more specific CSS selector. #500

@elliotgao2

Description

@elliotgao2
Image
    - text: First name
    - textbox "First name" [ref=e13]:
      - /placeholder: Enter first name
    - paragraph: Please enter a first name.
    - text: Last name
    - textbox "Last name" [ref=e14]:
      - /placeholder: Enter last name
    - paragraph: Please enter a last name.
    - text: Date of birth (MM/DD/YYYY) *
    - textbox "Date of birth (MM/DD/YYYY) *" [ref=e15]:
      - /placeholder: MM/DD/YYYY
    - button "Choose date" [ref=e16]
    - paragraph: Please enter a date of birth.
    - text: State *
    - button "Help icon Button" [ref=e17]
    - button [ref=e18]
    - paragraph: Please select a state.
    - button "Search" [ref=e19]
    - link "Clear search" [ref=e20]:
agent-browser click @e18          
✗ Selector "@e18" matched 8 elements. Run 'snapshot' to get updated refs, or use a more specific CSS selector.

When there are multiple buttons and I want to click the button without name.

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