How do I stop selenium chromedriver from logging errors to the screen?
I am running some cucumber tests and Im using capybara & the selenium chromedriver to drive the tests.
In the last few weeks ive noticed that the Chromedriver has started logging its error messages to the screen. My tests still run fine but the errors are clogging up the output.
This is the output below:
Started ChromeDriver
port=9515
version=23.0.1240.0
log=C:\Gitrepos\Base Tests\chromedriver.log
[8244:5080:1115/151428:ERROR:gpu_info_collector_win.cc(91)] Can't retrieve a valid WinSAT assessment.
Given I Select "Customer" from the "Search" gadget
And I enter "Test Customer" for "Customer Name"
And click "Search"
And Select "Manage Customer" from the "Main Menu" drop down
The solution would be to remove the following line from the output or possibly to fix the error.
[8244:5080:1115/151428:ERROR:gpu_info_collector_win.cc(91)] Can’t retrieve a valid WinSAT
assessment.
I upgraded the driver to fix a different error but I ended up getting this error!
Try to start the Chromedriver using a redirect of STDERR, e.g.
chromedriver.exe 2>c:\temp\err.log