We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf93d6 commit 5aa4606Copy full SHA for 5aa4606
packages/agent-infra/browser/src/local-browser.ts
@@ -61,6 +61,7 @@ export class LocalBrowser extends BaseBrowser {
61
options?.profilePath
62
? `--profile-directory=${options.profilePath}`
63
: '',
64
+ ...(options.args ?? []),
65
].filter((item) => {
66
if (type === 'firefox') {
67
// firefox not support rules
packages/agent-infra/browser/src/types.ts
@@ -12,6 +12,10 @@ export type BrowserType = 'chrome' | 'edge' | 'firefox';
12
* @interface LaunchOptions
13
*/
14
export interface LaunchOptions {
15
+ /**
16
+ * Additional command line arguments to pass to the browser instance.
17
+ */
18
+ args?: string[];
19
/**
20
* Whether to run browser in headless mode
21
* @default false
0 commit comments