mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
712 stars 69 forks source link

feat(page): add wait_for_network_idle #201

Closed j-mendez closed 1 month ago

j-mendez commented 5 months ago

Hi, this PR provides a way for the client to wait for network connections to become idle. It mimics puppeteers and playwrights implementation of waiting for at least 500 seconds for the last network request. We provide two methods for control the feature. One comes with a timeout to prevent long polling from keeping connections open.