Is there an established pattern for how to wait for a form submission to complete?
In my case when the form is submitted the page is essentially just reloaded.
Currently I've tried page.waitForURL() as well as page.waitForLoadState(), but both seem to be returning immediately since the form submission is not actually causing the URL to change.
This thread is trying to answer question "Is there an established pattern for how to wait for a form submission to complete when the form submission does not change the URL?"
If there is a network request that is made with the form submission you can use something like - page.waitForResponse
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 firstname.lastname@example.org.