Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I'm getting a Chrome Driver related error when running my Selenium tests. The error message is "Unable to Discover Open Pages." The Selenium tests were all running fine until last evening. The problem seemed to begin after a reboot of the server the day before. I cannot reproduce this error on my local box. Running the Selenium tests from the command line on the server does open the Chrome Browser but results in the same error. Any ideas?

The line that is failing:

chromeDriver = new OpenQA.Selenium.Chrome.ChromeDriver(externalDriverPath);

Error message and stack trace:

 unable to discover open pages (Driver info: chromedriver=2.1,platform=Windows NT 6.1 SP1 x86_64) at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, ChromeOptions options) at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory) at SeleniumTests.BaseTest.SetupBrowsers()

When creating an instance of the ChromeDriver, a console window appears. The server with the error seems to refer to things NOT IMPLEMENTED.

ChomeDriver Output From the Server with the Error:

 Started ChromeDriver (v2.1) on port 2984 [4700:4292:0108/] Can't retrieve a va lid WinSAT assessment. [4700:4292:0108/] NOT IMPLEMENTED [4700:4292:0108/] NOT IMPLEMENT ED [0108/] eglInitialize failed with error UNKNO WN [0108/] GLSurfaceEGL::InitializeOneOff failed.

ChomeDriver Output From My PC which works fine:

Started ChromeDriver (v2.1) on port 18786 [884540:883760:0108/] Can't retrieve a valid WinSAT assessment. [884992:884996:0108/] manifestTypes: A llowing web_page contexts requires supplying a value for matches. [885232:885236:0108/] manifestTypes: A llowing web_page contexts requires supplying a value for matches. [884540:883760:0108/] manifestTypes: A llowing web_page contexts requires supplying a value for matches. [0108/] eglInitialize failed with error UNKNOWN [0108/] GLSurfaceEGL::InitializeOneOff failed. 

1 Answer

0 votes
by (62.9k points)

This version of the ChromeDriver is highly outdated though it was released just 6 months before that date, I suggest you update it with the latest version from here

I would highly suspect the problem is your Chrome on your server has updated, as ChromeDriver v2.1 doesn't support any recent versions of Chrome

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 training!

Browse Categories