internal static bool IsMsgFromTargetSession(this CdpResponse response, string sessionId) { return(response.IsMethod(CdpApi.Methods.TargetRecvMsg) && response.HasKeyValue("params.sessionId", sessionId)); }
internal static bool IsMsgTargetDestroyed(this CdpResponse response, string targetId) { return(response.IsMethod(CdpApi.Methods.TargetDestroyed) && response.HasKeyValue("params.targetId", targetId)); }
internal static bool IsMsgTargetPageCreated(this CdpResponse response) { return(response.IsMethod(CdpApi.Methods.TargetCreated) && response.HasKeyValue("params.targetInfo.type", "page")); }