From 2a541a5da3c0542acd46a84e0aa1e8f2cb751665 Mon Sep 17 00:00:00 2001 From: acfasj Date: Tue, 19 Mar 2024 17:22:29 +0800 Subject: [PATCH] fix: #1448 --- chromedp.go | 5 +++++ 1 file changed, 5 insertions(+) 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