Intellipaat 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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...