New issue
Advanced search Search tips
Starred by 6 users

Issue metadata

Status: Duplicate
Merged: issue 672
Owner: ----
Closed: Feb 2014



Sign in to add a comment

selenium.WebDriverException: unknown error: unable to discover open pages

Reported by shailend...@gmail.com, Jan 17 2014 Back to list

Issue description

See http://goo.gl/ll2FvQ for common issues.

Issue Description:
Yesterday I have update latest version of chrome (32.xxx)
After that my scripts are not able to open the AUT in mobile browser.

I am using Mobile user agent on chrome.

Here is the user agent string that I am using:
System.setProperty("webdriver.chrome.driver",
					"Lib\\chromedriver.exe");

			ChromeOptions options = new ChromeOptions();
			options.addArguments("user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data");
			options.addArguments("--user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53");
			options.addArguments("--start-maximized");
//			FirefoxProfile profile = new FirefoxProfile();
//			profile.setPreference("general.useragent.override","Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16");
//			PCHdriver = new FirefoxDriver(profile);
			PCHdriver = new ChromeDriver(options);
			PCHdriver.manage().window().maximize();
			PCHdriver.manage().deleteAllCookies();


What happens IF I run the script:
It open the chrome browser and after some time it close it and giving error:
org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages
  (Driver info: chromedriver=2.2,platform=Windows NT 6.1 x86) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 26.83 seconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'QAVM-9', ip: '27.101.1.26', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
Driver info: org.openqa.selenium.chrome.ChromeDriver
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
	at org.openqa.selenium.chrome.ChromeDriver.startSession(ChromeDriver.java:182)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:161)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:150)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:139)

Please help me, It completely stop the execution.
Let me know in case need any other information.


-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).

 

Comment 1 by smwb...@gmail.com, Jan 20 2014

Yap, same from my side too.
In some blogs, discussion going on v2.5; but, that driver still not available for windows.
Waiting for valuable inputs on this.

Comment 2 by smwb...@gmail.com, Jan 20 2014

Some More information on the Environment:
Version 32.0.1700.76 m
Driver version: 2.3
Windows 7 Professional 64 bit
I got the Issue,Actually once we update the browser version the driver exe should get updated. to resolve this, go through his link and download the latest chromedriver exe as per you system configuration;

http://chromedriver.storage.googleapis.com/index.html?path=2.8/

Now replace the exe with the new one (prob you can rename the older and copy the new exe.)

For me this works well

Comment 4 by smwb...@gmail.com, Jan 20 2014

Thanks for the update...
Now it's working for me

Comment 5 by tarun.pr...@ibs.net, Jan 23 2014

Thanks for the update, it works perfect now
Unlike previous users, I am also spuriously getting this exception with the latest chromedriver (v2.8.241075). I'm on 64 bit Windows 7, Chrome 32.0.1700.76 m.
I am too facing the same issue. I checked for the site http://chromedriver.storage.googleapis.com/index.html?path=2.8/

However, there is no chromedriver present here to be downloaded. 

Can anyone please share the latest chromedriver for Chrome ver 32.

Thanks in advance!
Try this: http://chromedriver.storage.googleapis.com/index.html?path=2.9/

refer attached screen shot
Thanks for you reply. However the link you provided just opens a blank page.

There is no chromedriver.exe to be downloaded available here.
Project Member

Comment 10 by st...@chromium.org, Feb 3 2014

Mergedinto: 672
Status: Duplicate
I think this is fixed in 2.9.

You could download 2.9 from http://chromedriver.storage.googleapis.com/index.html?path=2.9/

For windows, the url is http://chromedriver.storage.googleapis.com/2.9/chromedriver_win32.zip
Thanks for providing the link for chromedriver for windows. 
I tried it, however still facing the same issue. I would let you know the configuration:
1) Microsoft windows server 2003
2) Selenium-server-standalone 2.25, also tried Selenium-server-standalone 2.31
3) Chrome version 32.0.1700.102 m

Please let me know if I am missing something.

Code - 
System.setProperty("webdriver.chrome.driver","C:/chromedriver.exe");
WebDriver browserObj = new ChromeDriver();																	 
browserObj.get(url);

Issue Faced - 
The above code opens chrome browser. It fails at step 2. Closes the browser automatically.
		
Project Member

Comment 12 by st...@chromium.org, Feb 7 2014

@bhidesonal88,

Unfortunately, I don't have a Windows Server 2003.
I tested with Win7 and chromedriver 2.9 works fine for me.

You may have to find a way to download chromedriver2.9 mentioned, turn on verbose logging for chromedriver (https://sites.google.com/a/chromium.org/chromedriver/logging), and attach your chromedriver.log here with the error you run into.

With these information, I could take a further investigation on the problem.

Comment 13 Deleted

Can any one help?
geting error "java.lang.ExceptionInInitializerError"

I am using 
Chrome driver 2.9 
Crome browser 33.0 ,
Winx 32 bit
Selenium Server 2.39
Can any one help?
geting error "java.lang.ExceptionInInitializerError"

I am using 
Chrome driver 2.9 
Crome browser 33.0 ,
Win 7- 32 bit
Selenium Server 2.39
Hi stgao,

Thanks for your help in resolving issue for chrome version 32.

In this case chromedriver.exe 2.9 worked for me.

I found that this exe does not work for version 33 of chrome. Is this handled in any new version of chromedriver.exe?

Could you please help me and let me know the updated chromeCriver for Chrome version 33.

Thanks in advance!
Hi,

Following are the details

1) Microsoft windows server 2003
2) Selenium-server-standalone 2.25, also tried Selenium-server-standalone 2.31
3) Chrome version 33.0.1750.146 m

Please let me know if I am missing something.

Code - 
System.setProperty("webdriver.chrome.driver","C:/chromedriver.exe");
WebDriver browserObj = new ChromeDriver();																	 
browserObj.get(url);

Issue Faced - 
The above code fails to open Chrome browser.

I guess higher version of chromedriver.exe would solve this issue.

Can anyone please help me out. 

Thanks!
start Selenium server with Dwebdriver.chrome.driver option then run the code again,,,.... check for 
Hello stgao,

I am getting following error while opening chrome browser;

Starting ChromeDriver 2.19.346078 (6f1f0cde889532d48ce8242342d0b84f94b114a1) on
port 9515
Only local connections are allowed.
Port not available. Exiting...

Details:
Win 7, 
chrome 45, 
chrome driver: tried all also latest 2.19
Selenium standalone 2.41, 2.42, 2.44

Please help me out to resolve it also let me know if any more details are required.

Thanks!

I have found the solution for this issue. it is working fine for me.

If you are using windows, run your Jenkins services in system admin,

1. open to run cmd
2. Enter service and click Okay button
3. A service dialog box open, locate Jenkins services. Go to properties of service
4. Go to logon tab, choose the second option. provide the your admin user not the local server
5. then restart the services.

This will work
Hi friends4...@gmail.com
Your comment workes fine for me, Thank you very muck.

Sign in to add a comment