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
When `--remote-debugging-pipe` is passed via `chromeFlags`, then `port` will be
119
+
unusable (0) by default. Instead, debugging messages are exchanged via
120
+
`remoteDebuggingPipes.incoming` and `remoteDebuggingPipes.outgoing`. The data
121
+
in these pipes are JSON values terminated by a NULL byte (`\x00`).
122
+
Data written to `remoteDebuggingPipes.outgoing` are sent to Chrome,
123
+
data read from `remoteDebuggingPipes.incoming` are received from Chrome.
124
+
114
125
### `ChromeLauncher.Launcher.defaultFlags()`
115
126
116
127
Returns an `Array<string>` of the default [flags](docs/chrome-flags-for-tools.md) Chrome is launched with. Typically used along with the `ignoreDefaultFlags` and `chromeFlags` options.
@@ -176,6 +187,9 @@ ChromeLauncher.launch({
176
187
}).then(chrome=> { ... });
177
188
```
178
189
190
+
To programatically load an extension at runtime, use `--remote-debugging-pipe`
191
+
as shown in [test/load-extension-test.ts](test/load-extension-test.ts).
192
+
179
193
### Continuous Integration
180
194
181
195
In a CI environment like Travis, Chrome may not be installed. If you want to use `chrome-launcher`, Travis can [install Chrome at run time with an addon](https://docs.travis-ci.com/user/chrome). Alternatively, you can also install Chrome using the [`download-chrome.sh`](https://raw.githubusercontent.com/GoogleChrome/chrome-launcher/v0.8.0/scripts/download-chrome.sh) script.
0 commit comments