[JS] Add support for ChromeDriver `--enable-chrome-logs`
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.
@@ -213,6 +213,14 @@ class ServiceBuilder extends remote.DriverService.Builder {
return this.addArguments('--log-path=' + path)
}
+ /**
+ * Enables Chrome logging.
+ * @returns {!ServiceBuilder} A self reference.
+ */
+ enableChromeLogging() {
+ return this.addArguments('--enable-chrome-logs');
+ }
+
/**
* Enables verbose logging.
* @return {!ServiceBuilder} A self reference.
