This thread is trying to answer question "What is the alternative method for WaitForNavigationAsync in Playwright since it's deprecated?"
The documentation says that WaitForURLAsync()
is the recommended alternative. Does that not cover your use-case? If it doesn't, then I would look for a different approach as opposed to a 1-to-1 replacement.
Speaking from experience, I replaced waitForNavigation
(node.js equivalent) with web-first assertions, and I've found them to be much better than waitForURL
or waitForNavigation
ever were. So much more resilient in my tests.
Good luck! Cheers ๐ป
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].