Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

ChromeDriver fails on OS X despite opening Chrome #4400

Closed
lukeis opened this issue Mar 4, 2016 · 6 comments
Closed

ChromeDriver fails on OS X despite opening Chrome #4400

lukeis opened this issue Mar 4, 2016 · 6 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 4400

1. Ensure Chrome is not running
2. Run the test case that's reproduced below [1]
3. Browser starts up, doesn't go to base url, and does nothing besides. And this error
output is received:

    [junit] Testcase: exampleTest took 20.508 sec
    [junit]     Caused an ERROR
    [junit] Could not start a new session. Possible causes are invalid address of the
remote server or browser start-up failure.
    [junit] Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01'
    [junit] System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.4',
java.version: '1.6.0_33'
    [junit] Driver info: driver.version: ChromeDriver
    [junit] org.openqa.selenium.remote.UnreachableBrowserException: Could not start
a new session. Possible causes are invalid address of the remote server or browser
start-up failure.
    [junit] Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01'
    [junit] System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.4',
java.version: '1.6.0_33'
    [junit] Driver info: driver.version: ChromeDriver
    [junit]     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:493)
    [junit]     at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:182)
    [junit]     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    [junit]     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
    [junit]     at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:165)
    [junit]     at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:107)
    [junit]     at org.denevell.foreignphrases.tests.UITestsRegister.setUp(UITestsRegister.java:17)
    [junit] Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for
driver server to start.
    [junit] Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01'
    [junit] System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.4',
java.version: '1.6.0_33'
    [junit] Driver info: driver.version: ChromeDriver
    [junit]     at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:166)
    [junit]     at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
    [junit]     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
    [junit] Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out
waiting for [http://localhost:44649/status] to be available after 20003 ms
    [junit]     at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104)
    [junit]     at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:164)
    [junit] Caused by: com.google.common.util.concurrent.UncheckedTimeoutException:
java.util.concurrent.TimeoutException
    [junit]     at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    [junit]     at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
    [junit] Caused by: java.util.concurrent.TimeoutException
    [junit]     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
    [junit]     at java.util.concurrent.FutureTask.get(FutureTask.java:91)
    [junit]     at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)

Selenium version: 2.25.0
OS: OS X
Browser: Chrome 
Browser version: 21.0.1180.75

Notes
-----

This test works fine with the FirefoxDriver.

[1] Here's the test case I am using:

package org.sample.tests;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverBackedSelenium;
import org.openqa.selenium.chrome.ChromeDriver;
import com.thoughtworks.selenium.SeleneseTestBase;

public class UITestsRegister extends SeleneseTestBase {
    @Before
    public void setUp() throws Exception {
        System.setProperty("webdriver.chrome.driver", "/Applications/Google Chrome.app/Contents/MacOS/Google
Chrome");

        WebDriver driver = new ChromeDriver();
        String baseUrl = "http://www.duckduckgo.com";
        selenium = new WebDriverBackedSelenium(driver, baseUrl);
    }

    @After
    public void tearDown() throws Exception {
        selenium.stop();
    }

    @Test
    public void exampleTest() throws Exception {
        selenium.open("/");
    }

}

Reported by my.name.is.aaron.newell on 2012-08-12 13:15:27

@lukeis lukeis closed this as completed Mar 4, 2016
@lukeis lukeis changed the title placeholder empty issue ChromeDriver fails on OS X despite opening Chrome Mar 4, 2016
@lukeis lukeis self-assigned this Mar 4, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2012-08-14 10:52:03

  • Labels added: Component-WebDriver, Browser-Chrome, OpSys-OSX

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I have same problem with ChromeDriver + MacOS. Do you have updates about this issue?

Reported by waferperson on 2012-10-26 21:24:28

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I was seeing similar problems on Mac OS X Lion (10.7.5) while using Chrome 22 + chromedriver
23.  (I couldn't find a chromedriver_22_mac under the downloads section on http://code.google.com/p/chromedriver/downloads/list,
so was using chromedriver_23_mac instead).  A Chrome window would open but then get
stuck.

Upgrading my Chrome install to 23 (beta) from  https://www.google.com/landing/chrome/beta/
seemed to fix the problem -- the window opens and tests progress.

Hope this helps!

Reported by gmcnaughton@team.curious.com on 2012-10-30 16:05:43

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi!

Is this issue still actual with latest selenium and chromedriver v2 ?

Reported by a.u.savchuk on 2013-10-01 14:56:22

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing the issue as chromedriver1 is deprecated. Please migrate to chromedriver2

Reported by barancev on 2013-11-01 20:05:42

  • Status changed: Invalid
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:00

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant