From 203b97d9573d72f3843a8bf25316c523a5641615 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 27 May 2025 01:46:06 -0400 Subject: [PATCH] Update default UserAgent string in PlayWrightBrowser Changed the UserAgent to represent a macOS system using Firefox 137.0. This ensures the browser identification aligns with updated standards and improves compatibility. --- playwright.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.go b/playwright.go index 3656ece..cfc41e4 100644 --- a/playwright.go +++ b/playwright.go @@ -80,7 +80,7 @@ func playwrightCookieToCookie(cookie playwright.Cookie) Cookie { func NewPlayWrightBrowser(opts ...PlayWrightBrowserOptions) (Browser, error) { var thirtySeconds = 30 * time.Second opt := PlayWrightBrowserOptions{ - UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0", + UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0", Browser: PlayWrightBrowserSelectionFirefox, Timeout: &thirtySeconds, DarkMode: false,