webdriverio: Eager / early page load automation not available for devtools
When automating using automationProtocol: 'devtools' eg. on Chrome
How to run automations very early at earliest possible point during page load?
With WebDriver for example there is a capability 'pageLoadStrategy' which can be set to 'eager' or even 'none'
This capability does not seem to be implemented for WebdriverIO+devtools. Rather it seems like automations only begin operating after full complete page load is finished.
For many use cases automation is needed much earlier, such as immediately upon initial page parse, document begin, document end, before loading secondary resources etc.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (9 by maintainers)
By listening on the
page.on('framedetached')event. Puppeteer allows to track exactly which pages are open and which ones close.