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

[Feature request] Web first assettions #271

Closed
papshmeare opened this issue May 4, 2022 · 1 comment
Closed

[Feature request] Web first assettions #271

papshmeare opened this issue May 4, 2022 · 1 comment

Comments

@papshmeare
Copy link

I was recommended to file a feature request for what I am surely doing as a hack. I want to wait until a value of a given elements' attribute equals to false. At the moment I awkwardly loop until the condition is met but after reading the documentation about ".waitFor" I am sure there has to be a better way of doing it. Please correct this message if the format of the request is not correct.

     for {
         v, _ := element.GetAttribute("attribute")
         if v != "true" {
             break
         }
     }
@mxschmitt
Copy link
Collaborator

(Note for contributors)

This would be essentially to port this and make it available: https://playwright.dev/docs/test-assertions

Code pointer how it was done in Python: https://github.com/microsoft/playwright-python/blob/main/playwright/_impl/_assertions.py

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

No branches or pull requests

3 participants