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
Get the [FrameEnvironment](/docs/basic-interfaces/frame-environment) object corresponding to the provided HTMLFrameElement or HTMLIFrameElement. Use this function to attach to the full environment of the given DOM element.
Copy file name to clipboardExpand all lines: website/docs/Overview/Configuration.md
+4-14Lines changed: 4 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Configuration variables can be defined at a few levels:
8
8
9
9
The internal `@secret-agent/core` module can receive several configuration options on [start](#core-start), or when a [Handler](/docs/basic-interfaces/handler) or [Agent](/docs/basic-interfaces/agent) establishes a [connection](/docs/advanced/connection-to-core).
10
10
11
-
### Connection To Core <divclass="specs"><i>Agent</i></div>
11
+
### Connection To Core <divclass="specs"><i>Agent</i></div>
12
12
13
13
The [ConnectionToCore](/docs/advanced/connection-to-core) to be used by a [Handler](/docs/basic-interfaces/handler) or [Agent](/docs/basic-interfaces/agent).
14
14
@@ -97,17 +97,9 @@ Configures a proxy url to route traffic through for a given Agent. This function
97
97
98
98
An upstream proxy url should be a fully formatted url to the proxy. If your proxy is socks5, start it with `socks5://`, http `http://` or `https://` as needed. An upstream proxy url can optionally include the user authentication parameters in the url. It will be parsed out and used as the authentication.
### Browsers Emulator Id <divclass="specs"><i>Agent</i></div>
101
101
102
-
Configures which [BrowserEmulators](/docs/advanced/browser-emulators) to enable or use in a given Agent.
103
-
104
-
At an Agent level, `browserEmulatorId` configures the module to use.
105
-
106
-
- Configurable via [`Handler.createAgent()`](/docs/basic-interfaces/handler#create-agent) or [`Handler.dispatchAgent()`](/docs/basic-interfaces/handler#dispatch-agent).
107
-
108
-
At a Connection or Core level, `browserEmulatorIds` indicates a list of modules to initialize before any Agents are created.
109
-
110
-
- Configurable via [`Core.start()`](#core-start) or [`ConnectionToCore`](/docs/advanced/connection-to-core).
102
+
Configures which [BrowserEmulator](/docs/advanced/browser-emulators) to use in a given Agent.
111
103
112
104
### Human Emulator Id <divclass="specs"><i>Agent</i></div>
113
105
@@ -127,8 +119,6 @@ Update existing settings.
127
119
- maxConcurrentAgentsCount `number` defaults to `10`. Limit concurrent Agent sessions running at any given time.
128
120
- localProxyPortStart `number` defaults to `any open port`. Starting internal port to use for the mitm proxy.
129
121
- sessionsDir `string` defaults to `os.tmpdir()/.secret-agent`. Directory to store session files and mitm certificates.
130
-
- defaultBlockedResourceTypes `string[]` defaults to `[None]`. Controls enabled browser resources.
131
-
- defaultUserProfile `IUserProfile`. Define user cookies, session, and more.
132
-
- replayServerPort `number`. Port to start a live replay server on. Defaults to "any open port".
122
+
- coreServerPort `number`. Port to run the Core Websocket/Replay server on.
0 commit comments