Enhance Puppeteer launch options and timeouts#13
Open
ankush-jain-akto wants to merge 1 commit intomasterfrom
Open
Enhance Puppeteer launch options and timeouts#13ankush-jain-akto wants to merge 1 commit intomasterfrom
ankush-jain-akto wants to merge 1 commit intomasterfrom
Conversation
Added additional Puppeteer launch arguments and timeout settings.
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the Puppeteer browser automation configuration by adding additional launch arguments and timeout settings to improve stability and reduce detectability in headless mode.
- Expanded Chrome launch arguments from 2 to 11 flags for better resource management and stability
- Added timeout configurations for page navigation (200s) and default operations (30s)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'); | ||
| await page.setViewport({ width: 1920, height: 1080 }); | ||
|
|
||
| page.setDefaultNavigationTimeout(200000); |
There was a problem hiding this comment.
Duplicate timeout configuration. page.setDefaultNavigationTimeout(200000) is already set later in the code at line 107. This duplicate setting should be removed to avoid confusion and maintain cleaner code.
Suggested change
| page.setDefaultNavigationTimeout(200000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added additional Puppeteer launch arguments and timeout settings.