Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 888458

Summary: Arquillian Drone is unable to instantiate Firefox driver if acceptSslCerts, webStorageEnabled, loggingPrefs properties are used in arquillian.xml
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Tomas Repel <trepel>
Component: ArquillianAssignee: Karel Piwko <kpiwko>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Repel <trepel>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1.0CC: mnovotny, myarboro
Target Milestone: ER1   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:53:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 903533    
Bug Blocks:    

Description Tomas Repel 2012-12-18 18:20:33 UTC
Description of problem:

If you set these properties via arquillian.xml, the Drone fails to instantiate the Firefox driver. The problem is during creation of org.openqa.selenium.firefox.FirefoxDriver instance, these properties are cast from String to e.g. Boolean (in case of acceptSslCerts) resulting in ClassCastException.

Snippet of arquillian.xml:

<extension qualifier="webdriver">
  <property name="acceptSslCerts">false</property>
  <property name="webStorageEnabled">false</property>
  <property name="loggingPrefs">someLoggingPrefs</property>
</extension>

Snippet of Firefox driver injection that fails:

@Drone
FirefoxDriver browser;

Version-Release number of selected component (if applicable):

Arquillian 1.0.3.Final
Arquillian Drone extension 1.1.0.Final
Selenium 2.27.0 (WebDriver 2)

How reproducible:

Always.

Steps to Reproduce:
1. launch functional test using code snippets above
  
Actual results:

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
	at org.openqa.selenium.firefox.FirefoxDriver.populateProfile(FirefoxDriver.java:148)
	at org.openqa.selenium.firefox.FirefoxDriver.extractProfile(FirefoxDriver.java:133)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:100)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
	... 50 more

Expected results:

It launches Firefox browser.

Comment 1 JBoss JIRA Server 2013-01-09 08:36:52 UTC
Karel Piwko <kpiwko> made a comment on jira ARQ-1251

Pushed upstream in https://github.com/arquillian/arquillian-extension-drone/commit/9a1d805d783cae7476713888c0c91e3d0334a7c9

Comment 2 JBoss JIRA Server 2013-01-11 14:56:06 UTC
Karel Piwko <kpiwko> updated the status of jira ARQ-1251 to Closed

Comment 3 Karel Piwko 2013-01-24 09:08:42 UTC
Fixed upstream.

Comment 6 Tomas Repel 2013-02-26 09:40:59 UTC
Verified, Drone 1.1.1.Final handles these properties properly.

Comment 7 Karel Piwko 2013-05-14 14:53:58 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.