Skip to content

Commit 760e754

Browse files
authored
update screenshot period on image evaluator (#1042)
# why we need a higher interval than 2000ms, it now uses 5000 by default # what changed set default screenshot interval to 5000ms # test plan
1 parent 430db8c commit 760e754

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

evals/tasks/agent/webvoyager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const webvoyager: EvalFunction = async ({
3838

3939
// Start collecting screenshots in parallel
4040
const screenshotCollector = new ScreenshotCollector(stagehand.page, {
41-
interval: 2000, // Capture every 2 seconds
4241
maxScreenshots: 10, // Keep last 10 screenshots
4342
captureOnNavigation: true, // Also capture on page navigation
4443
});

evals/utils/ScreenshotCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ScreenshotCollector {
1818

1919
constructor(page: Page, options: ScreenshotCollectorOptions = {}) {
2020
this.page = page;
21-
this.interval = options.interval || 2000;
21+
this.interval = options.interval || 5000;
2222
this.maxScreenshots = options.maxScreenshots || 10;
2323
this.captureOnNavigation = options.captureOnNavigation ?? true;
2424
}

0 commit comments

Comments
 (0)