Skip to content

Commit

Permalink
Add 5m timeout to page.WaitForRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarlowgw committed Oct 26, 2023
1 parent d088a19 commit 98624e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/provider/browser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98624e6

Please sign in to comment.