Issue 5043 in selenium: ClassCastException in RemoteWebElement

54 vistas
Ir al primer mensaje no leído

sele...@googlecode.com

no leída,
21 ene 2013, 4:53:39 p.m.21/1/13
para selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5043 by edw...@gmail.com: ClassCastException in RemoteWebElement
http://code.google.com/p/selenium/issues/detail?id=5043

This is a very intermittent problem, but we've seen it happen multiple
times in various suite executions.

Upon executing this code on a disabled element (not sure if that has to do
with it):

java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Boolean at
org.openqa.selenium.remote.RemoteWebElement.isSelected(RemoteWebElement.java:132)
at
org.openqa.selenium.support.ui.Select.getAllSelectedOptions(Select.java:79)
at


public boolean isSelected() {
return (Boolean) execute(DriverCommand.IS_ELEMENT_SELECTED,
ImmutableMap.of("id", id))
.getValue();
}





Selenium version: 2.28.0
OS: Windows 7
Browser: Chrome
Browser version: 24.0.1312.52 m


Other stack traces representing the issue collected over several weeks:

java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.List
at
org.openqa.selenium.remote.RemoteWebElement.findElements(RemoteWebElement.java:173)
at
org.openqa.selenium.remote.RemoteWebElement.findElementsByXPath(RemoteWebElement.java:226)
at org.openqa.selenium.By$ByXPath.findElements(By.java:339)
at
org.openqa.selenium.remote.RemoteWebElement.findElements(RemoteWebElement.java:153)
at org.openqa.selenium.support.ui.Select.selectByValue(Select.java:199)


java.lang.ClassCastException: java.lang.String cannot be cast to
org.openqa.selenium.WebElement
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:304)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:331)
at org.openqa.selenium.By$ById.findElement(By.java:216)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:294)
at
org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:59)
at
org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:34)


java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.List
at
org.openqa.selenium.remote.RemoteWebDriver.getWindowHandles(RemoteWebDriver.java:416)


java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Boolean
at
org.openqa.selenium.remote.RemoteWebElement.isEnabled(RemoteWebElement.java:137)

sele...@googlecode.com

no leída,
28 ene 2013, 5:25:06 p.m.28/1/13
para selenium-develope...@googlegroups.com
Updates:
Status: NeedsClarification
Cc: kka...@google.com
Labels: Browser-Chrome

Comment #1 on issue 5043 by barancev: ClassCastException in RemoteWebElement
http://code.google.com/p/selenium/issues/detail?id=5043

Without a reproduction scenario (even an intermittent one) this issue is
not actionable.

sele...@googlecode.com

no leída,
4 feb 2013, 3:11:40 p.m.4/2/13
para selenium-develope...@googlegroups.com
Updates:
Status: Started
Labels: -Status-Untriaged

Comment #2 on issue 5043 by barancev: ClassCastException in RemoteWebElement
http://code.google.com/p/selenium/issues/detail?id=5043

Revision 9f672a380527 implemened better diagnostics, we'll see what
response was received that can't be casted to the required type.

When 2.30 will be available please run your tests again to get more info on
the failure root cause.

sele...@googlecode.com

no leída,
19 oct 2013, 6:47:21 a.m.19/10/13
para selenium-develope...@googlegroups.com
Updates:
Status: Invalid

Comment #3 on issue 5043 by barancev: ClassCastException in RemoteWebElement
http://code.google.com/p/selenium/issues/detail?id=5043

Closing the issue as chromedriver v.1 is obsolete, all the users should
switch to chromedrier 2.x. If the issue is still present in 2.x please send
the report to the chromedriver tracker [1]

[1] http://code.google.com/p/chromedriver/issues/list

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos