ChromeDriver hangs after launch on Linux

193 views
Skip to first unread message

Patrick Wright

unread,
Mar 23, 2010, 7:23:15 AM3/23/10
to webd...@googlegroups.com
Hi

Using Chrome for Linux, 64bit, 5.0.307.11 beta (which otherwise
works--have been using this build without problems for other work),
and Selenium 2.0a2, I'm experiencing a hang after the Chrome browser
opens in my tests.

I am testing some existing code that was written against the legacy
Selenium API, so I am constructing a subclass of
com.thoughtworks.selenium.DefaultSelenium, passing it a command
processor around the ChromeDriver, more or less like this

new MySelenium(new ChromeDriver(), _startUrl);

and in MySelenium's constructor
public MySelenium(final WebDriver _driver, final String _browserUrl) {
super(new WebDriverCommandProcessor(_driver, _browserUrl));
}

when it hits this line, Chrome opens up but then hangs--it never
leaves this block.

This same setup works, for example, with the FirefoxDriver. The Chrome
URL bar starts at http://localhost:34051/chromeCommandExecutor, I
believe, then switches to
http://localhost:34051/chromeCommandExecutor?reloaded. There is one
tab open and it remains blank apart from the default text
"ChromeDriver server started and connected. Please leave this tab
open.".


Anyone else experiencing this?

Thanks
Patrick

Eran M.

unread,
Mar 23, 2010, 7:26:06 AM3/23/10
to webd...@googlegroups.com
Hi,

Recently the protocol to communicate with Chrome, Firefox and Remote WebDrivers was updated and unified. Please try the same code again against a recent trunk (post r8500) and let us know if Chrome still hangs.

Regards,
Eran


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


Patrick Wright

unread,
Mar 23, 2010, 9:55:37 AM3/23/10
to webd...@googlegroups.com
The code won't build without error on my machine, r8563, Chrome
5.0.307.11 beta is installed.

-------------------------------------------------------------------------------
Test set: org.openqa.selenium.chrome.ChromeDriverTestSuite
-------------------------------------------------------------------------------
Tests run: 319, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
273.104 sec <<< FAILURE!
testShouldBeAbleToSelectAFrameByName(org.openqa.selenium.FrameSwitchingTest)
Time elapsed: 1.656 sec <<< ERROR!
org.openqa.selenium.NoSuchFrameException: Could not find iframe to
switch to by name:second
System info: os.name: 'Linux', os.arch: 'amd64', os.version:
'2.6.31-20-generic', java.version: '1.6.0_20-ea'
Driver info: driver.version: remote
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:322)
at org.openqa.selenium.chrome.ChromeDriver.execute(ChromeDriver.java:74)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.frame(RemoteWebDriver.java:424)
at org.openqa.selenium.FrameSwitchingTest.testShouldBeAbleToSelectAFrameByName(FrameSwitchingTest.java:149)

Pankaj Nakhat

unread,
Mar 29, 2010, 8:20:52 AM3/29/10
to webdriver
Any idea when chrome issue will be fixed. I am using Ivy to download
the latest Selenium 2.0a2 for my project, and chrome hangs on both
windows and Linux.

Jason Leyba

unread,
Mar 29, 2010, 12:49:32 PM3/29/10
to webd...@googlegroups.com
Can you provide some more info so we know what's wrong? When it hangs:

1. Open a new tab to http://chrome/extensions
2. Enable developer mode
3. Open the background page for the webdriver extension
4. Check the console output for any errors

Pankaj Nakhat

unread,
Mar 30, 2010, 5:02:27 AM3/30/10
to webdriver
I dont see any information in teh background page.

It opens a tab with http://localhost:<somepport>/chromeCommandExecutor?reloaded
and hangs. Also, the web-driver extension icon next to to the address
turns red, which I think implies something wrong with the extension.

Thanks,
Pankaj

On Mar 29, 5:49 pm, Jason Leyba <jmle...@gmail.com> wrote:
> Can you provide some more info so we know what's wrong?  When it hangs:
>

> 1. Open a new tab tohttp://chrome/extensions

Reply all
Reply to author
Forward
0 new messages