Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Methods to find locators such as getByLabel or getByRole does not autowait for the elements to be stable #34532

Open
goyalni opened this issue Jan 29, 2025 · 1 comment

Comments

@goyalni
Copy link

goyalni commented Jan 29, 2025

Version

1.48.1

Steps to reproduce

I'm writing UI Automation on the PowerApps platform and some times some buttons takes some time to load. I'm using methods such as getByRole to locate these buttons but it does not autowait for the buttons to be enable or stable and perform the action even if the elements are not stable yet.
So, by the time these elements became stable the action is already been done and due to this I'm facing timeout error.

Expected behavior

Before performing any action on the locator it should auto wait to stable.

Actual behavior

Autowait is not working.

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 PRO 7840HS w/ Radeon 780M Graphics
    Memory: 38.63 GB / 61.78 GB
  Binaries:
    Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
    npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.96.2 
  npmPackages:
    @playwright/test: ^1.48.1 => 1.48.1
@agg23
Copy link
Contributor

agg23 commented Jan 29, 2025

Please provide an exact reproduction that we can trivally run. Preferably with a local page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants