0 votes
1 view
in Devops and Agile by (25k points)

When using Chrome Selenium-WebDriver, it will output diagnostic output when the servers are started:

Started ChromeDriver (v2.0) on port 9515

I do not want to see these messages, how can I suppress them?

I tried this:

ChromeOptions options = new ChromeOptions();

options.AddArgument("--silent");

IWebDriver Driver = new ChromeDriver(options);

But diagnostic output is not suppress. 

1 Answer

0 votes
by (63.3k points)

Use this code:

ChromeOptions options = new ChromeOptions();

optionsChrome.AddArgument("--log-level=3");

IWebDriver driver = new ChromeDriver(options);

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...