diff --git a/chromedp.go b/chromedp.go index 756f5132..72783dc6 100644 --- a/chromedp.go +++ b/chromedp.go @@ -615,6 +615,11 @@ func responseAction(resp **network.Response, actions ...Action) Action { finished = true lcancel() } + case *page.EventFrameStoppedLoading: + if hasInit && ev.FrameID == frameID { + finished = true + lcancel() + } } } // earlyEvents is a buffered list of events which happened