Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k 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 (62.9k points)

Use this code:

ChromeOptions options = new ChromeOptions();

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

IWebDriver driver = new ChromeDriver(options);

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium online training

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

28.5k questions

29.9k answers

500 comments

99.1k users

Browse Categories

...