Selenium Chromedriver launches Chrome 57, but doesn't open website

6,717 views
Skip to first unread message

venkatp...@gmail.com

unread,
Apr 5, 2017, 7:20:59 AM4/5/17
to Selenium Users
My Chrome browser got updated to 57 and I have webdriver version 2.28. The browser launches the browser and doe not open the url there is a test in the url.
Please let me know how to fix this.
Sometimes i get automation
  • \
  • ChromeDriver automation extension from loading and thereby causing window resizing/positioning & screenshot functionalities to break
  • Please help.

Andrey

unread,
Apr 5, 2017, 10:02:26 AM4/5/17
to Selenium Users
Try chromedriver version 2.29, it resolves the issue.

venkatp...@gmail.com

unread,
Apr 5, 2017, 2:10:56 PM4/5/17
to Selenium Users
HI Andrey,
Tired it but it does not work.
It worked on windows 7 but its not working on windows 10 OS.
Please advice.
Thank you very much.
package learnin_selenium;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class firstWebDriverClass {

public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "C:\\selenium\\chromedriver.exe");
 WebDriver driver = new ChromeDriver();
}

}

Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 19705
Only local connections are allowed.
Apr 05, 2017 2:05:32 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Exception in thread "main" org.openqa.selenium.NoSuchSessionException: no such session
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.10586 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 12 milliseconds
Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
System info: host: 'DCW7-HWBRR52', ip: '10.13.8.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_112'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: chrome failed to start
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.10586 x86_64), platform=ANY}]
Session ID: 441d242edafe3a848f2789139b8f3e28
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Rajiv Nanduani

unread,
Apr 5, 2017, 2:57:43 PM4/5/17
to seleniu...@googlegroups.com
even if you again run the test and previous chrome browser is already open then it will not run until,unless you close the previous browser

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/16be6215-59c1-4b4b-bda6-018fa6aab9c5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

venkatp...@gmail.com

unread,
Apr 5, 2017, 3:13:56 PM4/5/17
to Selenium Users
I had killed all the previous driver sessions and also browser. Still it does not work.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

venkatp...@gmail.com

unread,
Apr 5, 2017, 3:16:23 PM4/5/17
to Selenium Users
I had tried with firefox driver also. i get the below error. It does not open the url.

Code:
System.setProperty("webdriver.gecko.driver", "C:\\selenium\\geckodriver.exe"); 
 WebDriver  driver=new FirefoxDriver();


1491419697401 geckodriver INFO Listening on 127.0.0.1:33419
1491419698124 mozprofile::profile INFO Using profile path C:\Users\DELLCL~1\AppData\Local\Temp\rust_mozprofile.LiF3KXr45pIr
1491419698127 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args []
1491419698130 geckodriver::marionette INFO Connecting to Marionette on localhost:61512
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}]
Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
System info: host: 'DCW7-HWBRR52', ip: '10.13.8.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_112'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:121)
at learnin_selenium.firstWebDriverClass.main(firstWebDriverClass.java:13)
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes";"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes\jasmine.jar"




On Wednesday, April 5, 2017 at 2:57:43 PM UTC-4, testeverything wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Lord C

unread,
Apr 6, 2017, 12:39:46 AM4/6/17
to Selenium Users


I'm facing the same issue and couldn't find any solution yet.

Chrome Browser version installed in PC is v 57.
Chromedriver version is 2.29
Selenium java version is 3.3.1
Selenium server version is 3.3.1

I have downgrade the chromedriver to 2.28 and tried but got same issue as below,


 Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 35052

Only local connections are allowed.
Apr 06, 2017 9:56:47 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS



Message has been deleted

sachin bhangade

unread,
Apr 6, 2017, 8:09:29 AM4/6/17
to Selenium Users
I am having chrome version 57 and chrome driver version 3.0.1. And it's working very well at my end

venkatp...@gmail.com

unread,
Apr 6, 2017, 10:10:15 AM4/6/17
to Selenium Users
Please let me know if it resolved the issue.
Thanks

venkatp...@gmail.com

unread,
Apr 6, 2017, 10:11:21 AM4/6/17
to Selenium Users
Where do you get the chrome driver 3.01. I thought the latest was 2.2.9.
Please clarify


On Thursday, April 6, 2017 at 8:09:29 AM UTC-4, sachin bhangade wrote:

venkatp...@gmail.com

unread,
Apr 6, 2017, 10:32:22 AM4/6/17
to Selenium Users
Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 37311
Only local connections are allowed.
Apr 06, 2017 10:25:22 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
exception no such session
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.10586 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10 milliseconds
Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
System info: host: 'DCW7-HWBRR52', ip: '10.13.8.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_112'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: chrome failed to start
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.10586 x86_64), platform=ANY}]
Session ID: c2999fed651626b87597c9fdcccb65a6
org.openqa.selenium.NoSuchSessionException: no such session

venkatp...@gmail.com

unread,
Apr 7, 2017, 2:29:28 PM4/7/17
to Selenium Users
The issue got fixed by moving the chrome browser from default program files x86 directory to another directory without any spaces.
Thanks

ADITYA GAURAV

unread,
Apr 7, 2017, 4:56:39 PM4/7/17
to Selenium Users
Hi Venkat,

ChromeDriver version: 2.29
Selenium webdriver version: 3.3.1
Os name: windows 10
Chrome version: 57

Below code is work fine for me. Update your chrome driver version to 2.29. That might help you.

package
com.seleniumpractice.driversetup;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;


public class ChromeDriverSetup {

public static void main(String[] args) {
// TODO Auto-generated method stub
        System.setProperty("webdriver.chrome.driver", "C:\\Users\\adityag\\IdeaProjects\\SeleniumPractice\\src\\main\\resources\\drivers\\chromedriver.exe");

WebDriver driver = new ChromeDriver();
driver.get("https://pulseqa.genpt.net:8443/pulseui/login");
}
}

Thanks,
Aditya

Hafsa Iqbal

unread,
Feb 7, 2018, 12:19:49 AM2/7/18
to Selenium Users
I am using the same code but chrome does not open mentioned URL. Following error occurs:

[7372:7108:0207/100552.008:ERROR:cache_util_win.cc(20)] Unable to move the cache: 5
[7372:7108:0207/100552.011:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\Admin\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\Admin\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[7372:7108:0207/100552.011:ERROR:disk_cache.cc(169)] Unable to create cache
[7372:7108:0207/100552.011:ERROR:shader_disk_cache.cc(601)] Shader Cache Creation failed: -2
[7372:7108:0207/100554.107:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process.
Created new window in existing browser session.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T19:05:14.666Z'
System info: host: 'HAFSA', ip: '192.168.0.10', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_144'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at myproject.MyProject.main(MyProject.java:25)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:23338/status] to be available after 20002 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:147)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more
Reply all
Reply to author
Forward
0 new messages