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
--
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.
-------------------------------------------------------------------------------
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)
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
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