| 23 | Object.defineProperty(navigator, 'languages', {get: () => ['en-US', 'en']});` |
| 24 | |
| 25 | type BrowserSource struct { |
| 26 | BrowserPath string |
| 27 | URL string |
| 28 | UserAgent string |
| 29 | Timeout time.Duration |
| 30 | PostLoadDelay time.Duration |
| 31 | |
| 32 | mu sync.Mutex |
| 33 | pw *playwright.Playwright |
| 34 | browser playwright.Browser |
| 35 | } |
| 36 | |
| 37 | func NewBrowserSource() (*BrowserSource, error) { |
| 38 | browserPath, err := resolveBrowserOverride() |
nothing calls this directly
no outgoing calls
no test coverage detected