w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Implement `pageshow` instead of `load` #661

Closed jrandolf closed 4 months ago

jrandolf commented 4 months ago

pageshow has better semantics than load as it is consistently triggered, even when the page comes from BFCache.

jrandolf commented 4 months ago

Looks like we can get away with waiting for current frames to disappear on top of waiting for navigation in Puppeteer. See https://github.com/puppeteer/puppeteer/pull/11919