Skip to content

Enhance Puppeteer launch options and timeouts#13

Open
ankush-jain-akto wants to merge 1 commit intomasterfrom
feature/add_timeouts
Open

Enhance Puppeteer launch options and timeouts#13
ankush-jain-akto wants to merge 1 commit intomasterfrom
feature/add_timeouts

Conversation

@ankush-jain-akto
Copy link
Copy Markdown
Contributor

Added additional Puppeteer launch arguments and timeout settings.

Added additional Puppeteer launch arguments and timeout settings.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread test.mjs
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);
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants