Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ async function runReplay(replayJSON, command) {
headless: 'new', // Use new headless mode which is less detectable
dumpio: true,
args: [
'--no-sandbox', '--disable-gpu'
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-gpu',
'--disable-background-networking',
'--disable-default-apps',
'--disable-extensions',
'--disable-sync',
'--metrics-recording-only',
'--no-first-run',
'--safebrowsing-disable-auto-update'
]
});

Expand All @@ -61,7 +71,9 @@ async function runReplay(replayJSON, command) {
// Additional anti-detection measures
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.
page.setDefaultTimeout(30000);

// Override webdriver property
await page.evaluateOnNewDocument(() => {
Object.defineProperty(navigator, 'webdriver', {
Expand Down
Loading