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
-`device_scale_factor`: Device scale factor (DPI). Set to `2.0` or `3.0` for high-resolution screenshots
18
20
19
-
20
-
21
21
## Browser Behavior
22
+
22
23
-`keep_alive` (default: `None`): Keep browser running after agent completes
23
24
-`allowed_domains`: Restrict navigation to specific domains. Domain pattern formats:
24
-
-`'example.com'` - Matches only `https://example.com/*`
25
+
-`'example.com'` - Matches only `https://example.com/*`
25
26
-`'*.example.com'` - Matches `https://example.com/*` and any subdomain `https://*.example.com/*`
26
27
-`'http*://example.com'` - Matches both `http://` and `https://` protocols
27
28
-`'chrome-extension://*'` - Matches any Chrome extension URL
@@ -32,18 +33,20 @@ mode: "wide"
32
33
-`is_local` (default: `True`): Whether this is a local browser instance. Set to `False` for remote browsers. If we have a `executable_path` set, it will be automatically set to `True`. This can effect your download behavior.
33
34
34
35
## User Data & Profiles
36
+
35
37
-`user_data_dir` (default: auto-generated temp): Directory for browser profile data. Use `None` for incognito mode
-`storage_state`: Browser storage state (cookies, localStorage). Can be file path string or dict object
38
40
39
41
## Network & Security
42
+
40
43
-`proxy`: Proxy configuration using `ProxySettings(server='http://host:8080', bypass='localhost,127.0.0.1', username='user', password='pass')`
41
44
-`permissions` (default: `['clipboardReadWrite', 'notifications']`): Browser permissions to grant. Use list like `['camera', 'microphone', 'geolocation']`
42
45
43
46
-`headers`: Additional HTTP headers for connect requests (remote browsers only)
44
47
45
-
46
48
## Browser Launch
49
+
47
50
-`executable_path`: Path to browser executable for custom installations. Platform examples:
-`ignore_default_args`: List of default args to disable, or `True` to disable all. Use list like `['--enable-automation', '--disable-extensions']`
57
60
58
61
## Timing & Performance
62
+
59
63
-`minimum_wait_page_load_time` (default: `0.25`): Minimum time to wait before capturing page state in seconds
60
64
-`wait_for_network_idle_page_load_time` (default: `0.5`): Time to wait for network activity to cease in seconds
61
65
-`wait_between_actions` (default: `0.5`): Time to wait between agent actions in seconds
62
66
63
67
## AI Integration
68
+
64
69
-`highlight_elements` (default: `True`): Highlight interactive elements for AI vision
70
+
-`paint_order_filtering` (default: `True`): Enable paint order filtering to optimize DOM tree by removing elements hidden behind others. Slightly experimental
65
71
66
72
## Downloads & Files
73
+
67
74
-`accept_downloads` (default: `True`): Automatically accept all downloads
68
75
-`downloads_path`: Directory for downloaded files. Use string like `'./downloads'` or `Path` object
69
76
-`auto_download_pdfs` (default: `True`): Automatically download PDFs instead of viewing in browser
70
77
71
78
## Device Emulation
79
+
72
80
-`user_agent`: Custom user agent string. Example: `'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X)'`
73
81
-`screen`: Screen size information, same format as `window_size`
74
82
75
83
## Recording & Debugging
84
+
76
85
-`record_video_dir`: Directory to save video recordings as `.mp4` files
77
86
-`record_video_size` (default: `ViewportSize`): The frame size (width, height) of the video recording.
78
87
-`record_video_framerate` (default: `30`): The framerate to use for the video recording.
@@ -82,13 +91,16 @@ mode: "wide"
82
91
-`record_har_mode` (default: `'full'`): HAR recording mode (`'full'`, `'minimal'`)
83
92
84
93
## Advanced Options
94
+
85
95
-`disable_security` (default: `False`): ⚠️ **NOT RECOMMENDED** - Disables all browser security features
0 commit comments