Skip to content

Dramaturg recorder generates CSS locator instead of text locator for button #911

Description

@mardukbp

Given the following button element corresponding to the shopping cart button in this demo app

<button
  id="__button3"
  aria-label="Show Shopping Cart"
  title="Show Shopping Cart"
>
  <span id="__button3-inner">
    <span
      id="__button3-img"
      role="presentation"
      aria-hidden="true"
    >
    </span>
  </span>
</button>

The recorder generates the code

click css "span#__button3-img"

instead of

click button "Show Shopping Cart"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions