diff --git a/handler.go b/handler.go index db2b7e8..fa14eec 100644 --- a/handler.go +++ b/handler.go @@ -534,12 +534,15 @@ func (h *TargetHandler) pageEvent(ctxt context.Context, ev interface{}) { case *page.EventFrameClearedScheduledNavigation: id, op = e.FrameID, frameClearedScheduledNavigation + // ignored events case *page.EventDomContentEventFired: return case *page.EventLoadEventFired: return case *page.EventFrameResized: return + case *page.EventLifecycleEvent: + return default: h.errorf("unhandled page event %s", reflect.TypeOf(ev))