From 98624e6b8a591986d1c6eed468518477e40f6907 Mon Sep 17 00:00:00 2001 From: Keith Barlow Date: Thu, 26 Oct 2023 11:15:54 -0400 Subject: [PATCH] Add 5m timeout to page.WaitForRequest --- pkg/provider/browser/browser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/provider/browser/browser.go b/pkg/provider/browser/browser.go index dd8cbc744..9c3d03eee 100644 --- a/pkg/provider/browser/browser.go +++ b/pkg/provider/browser/browser.go @@ -94,7 +94,8 @@ var getSAMLResponse = func(page playwright.Page, loginDetails *creds.LoginDetail } logger.Info("waiting ...") - r, _ := page.WaitForRequest(signin_re) + var timeout float64 = 300000 + r, _ := page.WaitForRequest(signin_re, playwright.PageWaitForRequestOptions{Timeout: &timeout}) data, err := r.PostData() if err != nil { return "", err