-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] wait until all of elements appear #4398
Comments
You could try something like this await Promise.all([
page.waitForSelector('#element1'),
page.waitForSelector('#element2')
]); to wait for both elements to become visible and the do the click. Or does one of the elements flicker? |
Thanks for the comment @yury-s Unfortunately, that fails as well, as the same reason. there are not waiting till the Any other ways you would like to suggest? thanks |
another update is that it passed at checking two subsections created, however now I am getting this error. I've found on a document saying
So I've put Many thanks |
Hey @Whooolia It will be helpful if you set DEBUG="pw:api" variable and share verbose log. |
Do I understand correctly that Would you be able to share the page along with the test you are trying to run so that we could look at it? |
Closing as a part of triaging, please feel free to open a new issue with additional details! |
I create
element1
andelement2
to reorder.As soon as
element2
created, it redirects to dashboard and should click the reorder button.However, the button clicks happened even before the element2 appears on the dashboard.
Although, I added this line before clicking the button it still fails.
what else I could try to make it wait until all the element is ready and then click the button.
Thanks
The text was updated successfully, but these errors were encountered: