Ok, so this is a part that I still have trouble getting my head around. There are some good answers I believe on this issue.
waitForNavigation will only resolve once the navigation has started and completed. So it will resolve after the page.click has completed. If I understood it correctly.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Shouldn't promises from
Promise.all()
run sequential (waitForNavigation
thenclick
)?Ok, so this is a part that I still have trouble getting my head around. There are some good answers I believe on this issue.
waitForNavigation will only resolve once the navigation has started and completed. So it will resolve after the page.click has completed. If I understood it correctly.