Skip to content

Commit e2866fc

Browse files
[JS] Add support for ChromeDriver --enable-chrome-logs (#9575)
The `--enable-chrome-logs` ChromeDriver option can now be enabled using the Chromium (or Chrome) ServiceBuilder, similarly to the other options provided by ChromeDriver. I found this option critically useful for debugging test failures. Co-authored-by: David Burns <[email protected]>
1 parent 6c32553 commit e2866fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

javascript/node/selenium-webdriver/chromium.js

+8
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ class ServiceBuilder extends remote.DriverService.Builder {
213213
return this.addArguments('--log-path=' + path)
214214
}
215215

216+
/**
217+
* Enables Chrome logging.
218+
* @returns {!ServiceBuilder} A self reference.
219+
*/
220+
enableChromeLogging() {
221+
return this.addArguments('--enable-chrome-logs');
222+
}
223+
216224
/**
217225
* Enables verbose logging.
218226
* @return {!ServiceBuilder} A self reference.

0 commit comments

Comments
 (0)