Skip to content

can't or stuck when find the element using the css selector #3263

@fikri-r-scp

Description

@fikri-r-scp

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  1. my code:
url: "https://mytestingsite.com"
---
- launchApp
- runFlow: ../../../elements/loadElements.yaml
- runFlow: ../../../subflows/login.yaml
- tapOn:
    css: "button[aria-label='Open user menu']"

The HTML contains this;

<button class="rounded-full ring-2 ring-transparent hover:ring-blue-400 focus:ring-blue-500 focus:outline-none transition-all duration-200 cursor-pointer" aria-label="Open user menu" type="button" id="radix-:r56:" aria-haspopup="menu" aria-expanded="false" data-state="closed"><span class="after:content-[''] after:block after:absolute after:inset-0 after:rounded-full after:pointer-events-none after:border after:border-black/10 dark:after:border-white/10 relative flex shrink-0 overflow-hidden rounded-full w-10 h-10"><span class="flex h-full w-full items-center justify-center rounded-full bg-primary text-primary-foreground text-xs">FR</span></span></button>
  1. Run the flow with maestro test flowtest.yaml

Actual results

The maestro is stuck in the tapOn step (step 2)

Note

  • if i use childOf in
- tapOn:
    css: "button[aria-label='Open user menu']"
    childOf:
      id: "mytestId"

it said: Element not found error

Expected results

should correctly detect the CSS

About app

Web

About environment

WEB
Windows 11
Maestro CLI 2.5.0

Logs

No response

Maestro version

2.5.0

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: webTesting web apps is affected

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions