You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@ await page.perform("click the login button", {
200
200
-`retryDelayMs`: delay between element-refetch retries.
201
201
-`maxContextSwitchRetries`: retries when a tab/context switch interrupts an in-flight action.
202
202
-`contextSwitchRetryDelayMs`: delay between context-switch retries (defaults to 500ms, capped for safety).
203
+
-`filterAdTrackingFrames`: override iframe filtering for this action (`true` by default). Set to `false` when you intentionally need ad/tracking iframes in scope.
203
204
-`maxSteps` (**deprecated**): compatibility alias for `maxElementRetries`.
204
205
- Using `maxSteps` emits a one-time deprecation warning per agent instance.
205
206
@@ -218,6 +219,7 @@ await page.perform("click the login button", {
218
219
219
220
-`useDomCache` (boolean): Reuse DOM snapshots for speed
220
221
-`enableVisualMode` (boolean): Enable screenshots and overlays (default: false)
222
+
-`filterAdTrackingFrames` (boolean): override ad/tracking iframe filtering for this task (inherits agent-level default when omitted)
221
223
222
224
**Example**:
223
225
@@ -573,6 +575,7 @@ HyperAgent integrates seamlessly with Playwright, so you can still use familiar
573
575
574
576
Keep in mind that CDP is still experimental, and stability is not guaranteed. If you'd like the agent to use Playwright's native locators/actions instead, set `cdpActions: false` when you create the agent and it will fall back automatically.
575
577
If you need to inspect ad/tracking iframes for a specific workflow, keep CDP enabled and set `filterAdTrackingFrames: false` in `new HyperAgent({ ... })`.
578
+
You can also override this per invocation using `page.ai(..., { filterAdTrackingFrames: false })` or `page.perform(..., { filterAdTrackingFrames: false })`.
576
579
577
580
The CDP layer is still evolving—expect rapid polish (and the occasional sharp edge). If you hit something quirky you can toggle CDP off for that workflow and drop us a bug report.
Copy file name to clipboardExpand all lines: currentState.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ HyperAgent exposes a TypeScript SDK for browser automation with three primary pa
118
118
- Removed direct `as any` casts in OpenAI/Anthropic/DeepSeek/Gemini provider request payload assembly in favor of SDK-derived parameter field typing.
119
119
- Added `filterAdTrackingFrames` configuration in `HyperAgent` so CDP frame discovery can optionally include ad/tracking iframes for workflows that require them.
120
120
- Propagated frame-filter policy through DOM-settle/replay/wait paths so `waitForSettledDOM` and special replay actions honor per-agent ad/tracking frame filtering settings.
121
+
- Added per-invocation frame-filter overrides on `page.ai`, `page.perform`, and replay params so workflows can opt in/out of ad/tracking iframe filtering without constructing a new agent.
121
122
- Expanded top-level package exports for key workflow/config types at `@hyperbrowser/agent`.
122
123
- Removed stale script entry (`build-dom-tree-script`) and improved README usage docs.
123
124
- Added canonical single-action debug writer helper (`writePerformDebug`) while preserving deprecated alias compatibility.
Copy file name to clipboardExpand all lines: docs/cdp-overview.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ const agent = new HyperAgent({
26
26
-`true` (default): skip likely ad/tracking frames during OOPIF/session discovery.
27
27
-`false`: include those frames, which is useful for workflows that intentionally interact with ad-tech, analytics tags, or embedded consent/tracking widgets.
28
28
29
+
Override scopes:
30
+
- agent-level default via `new HyperAgent({ filterAdTrackingFrames: ... })`,
31
+
- per-task override via `page.ai(task, { filterAdTrackingFrames: ... })`,
32
+
- per-single-action override via `page.perform(instruction, { filterAdTrackingFrames: ... })`,
33
+
- replay override via `runFromActionCache(..., { filterAdTrackingFrames: ... })`.
0 commit comments