Skip to content

Commit 2431023

Browse files
PATCH: Removed chromedriver unnecessary logs
1 parent b22c8dd commit 2431023

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

TurboTesting-Node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "turbotesting-node",
3-
"version": "9.2.0",
3+
"version": "9.2.1",
44
"description": "General purpose cross-language library to improve automated testing productivity",
55
"main": "index.js",
66
"types": "index.d.ts",

TurboTesting-Node/src/main/ts/managers/AutomatedBrowserManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ export class AutomatedBrowserManager {
195195
let chromeOptions = new this.chrome.Options();
196196
let chromeCapabilities = this.webdriver.Capabilities.chrome();
197197

198+
// Disable the annoying console log: DevTools listening on ws://....
199+
chromeOptions.excludeSwitches('enable-logging');
200+
198201
// Initialize the chrome driver with the specified language.
199202
chromeOptions.addArguments([`--lang=${language}`]);
200203

0 commit comments

Comments
 (0)