SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
346 stars 194 forks source link

Intermittently ChromeDriver gives org.openqa.selenium.WebDriverException: java.lang.ClassCastException: java.lang.String cannot be cast to org.openqa.selenium.remote.Response #894

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 894

http://xserve.openqa.org:8085/build/viewBuildResultsFailedTests.action?buildKey=S2-CHW&buildNumber=25

org.openqa.selenium.WindowSwitchingTest       
Closing only window should not cause the browser to hang
org.openqa.selenium.WebDriverException: java.lang.ClassCastException: java.lang.String
cannot be cast to org.openqa.selenium.remote.Response
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.6.0_07'
Driver info: driver.version: chrome
    at org.openqa.selenium.chrome.ChromeCommandExecutor.handleResponse(ChromeCommandExecutor.java:285)
    at org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:134)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:328)
    at org.openqa.selenium.chrome.ChromeDriver.execute(ChromeDriver.java:87)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:348)
    at org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:241)
    at org.openqa.selenium.WindowSwitchingTest.testClosingOnlyWindowShouldNotCauseTheBrowserToHang(WindowSwitchingTest.java:200)
    at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
    at junit.extensions.TestSetup.run(TestSetup.java:27)
    at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
    at junit.extensions.TestSetup.run(TestSetup.java:27)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.openqa.selenium.remote.Response
    at org.openqa.selenium.chrome.ChromeCommandExecutor.handleResponse(ChromeCommandExecutor.java:281)

Reported by dawagner on 2010-10-16 17:32:33

lukeis commented 8 years ago
Closing this bug since it pertains to the old ChromeDriver.

Reported by jmleyba on 2011-06-24 20:03:27

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:50:17