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: docs/ferrum/2-customization.md
+78-2Lines changed: 78 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,9 @@ Ferrum::Browser.new(options)
15
15
*`:incognito` (Boolean) - Create an incognito profile for the browser startup window, `true` by default.
16
16
*`:dockerize` (Boolean) - Provide CLI flags to the browser to run it in a container, `false` by default.
17
17
*`:xvfb` (Boolean) - Run browser in a virtual framebuffer, `false` by default.
18
-
*`:flatten` (Boolean) - Use one websocket connection to the browser and all the pages in flatten mode.
18
+
*`:flatten` (Boolean) - Use one websocket connection to the browser and all the pages in flatten mode,
19
+
`true` by default. When set to `false`, each page/target opens its own dedicated websocket connection instead
20
+
of sharing the browser's connection.
19
21
*`:window_size` (Array) - The dimensions of the browser window in which to
20
22
test, expressed as a 2-element array, e.g. [1024, 768]. Default: [1024, 768]
21
23
*`:extensions` (Array[String | Hash]) - An array of paths to files or JS
@@ -42,7 +44,9 @@ Ferrum::Browser.new(options)
42
44
options you put in `:browser_options` will be passed to the browser,
43
45
except required ones of course.
44
46
*`:port` (Integer) - Remote debugging port for headless Chrome.
45
-
*`:host` (String) - Remote debugging address for headless Chrome.
47
+
*`:host` (String) - Host we communicate with when spawning browser, `127.0.0.1` by default.
48
+
Chrome always listens on `127.0.0.1` regardless of this option, so the host must resolve to `127.0.0.1` for
49
+
Ferrum to actually be able to connect.
46
50
*`:url` (String) - URL for a running instance of Chrome. If this is set, a
47
51
browser process will not be spawned.
48
52
*`:ws_url` (String) - Websocket url for a running instance of Chrome. If this is set, a
@@ -56,6 +60,78 @@ Ferrum::Browser.new(options)
56
60
*`:save_path` (String) - Path to save attachments with [Content-Disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) header.
57
61
*`:env` (Hash) - Environment variables you'd like to pass through to the process
58
62
63
+
## The crashpad handler
64
+
65
+
Chrome starts two `chrome_crashpad_handler` processes per browser on Linux. Their only job is to collect and upload
66
+
crash reports, which no automated browser has any use for, but **Ferrum does not disable them**, because there is no
0 commit comments