Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 5569 by
claus.ch...@gmail.com: Using PHANTOMJS_CLI_ARGS throws
ClassCastException
http://code.google.com/p/selenium/issues/detail?id=5569
What steps will reproduce the problem?
1. Instantiate DesiredCapabilities.phantomjs()
2. Add Capability according to the java doc of
PhantomJSDriverService.PHANTOMJS_CLI_ARGS
3. Instantiate a RemoteWebDriver with this
What is the expected output? What do you see instead?
Expected: PhantomJSDriverService.PHANTOMJS_CLI_ARGS will be used
Actual: java.lang.ClassCastException: java.util.ArrayList cannot be cast to
[Ljava.lang.String;
at
org.openqa.selenium.phantomjs.PhantomJSDriverService.findCommandLineArguments(PhantomJSDriverService.java:276)
Root Cause:
- BeanToJsonConverter#convertObject is converting String[] to a JSONArray
- JsonToBeanConverter#convertList is converting a JSONArray to a List.
- PhantomJSDriverService#findCommandLineArguments is casting the List to a
String[]
Selenium version: 2.31.0
OS: any
Browser: phantomjs
Browser version: 1.9.0
--
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