selenium - Unable to set INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS=true using spring beans -
i using jbehave , selenium build test framework browser based acceptance testing. used sample code @ https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring start off project, working pretty hit issue now.
my test cases running fine on firefox, nothing works on ie8. simple find clauses failing on ie.
system info: os.name: 'windows xp', os.arch: 'x86', os.version: '5.1', java.version: '1.7.0' driver info: driver.version: basefluentwebdriver @ org.openqa.selenium.remote.errorhandler.throwifresponsefailed(errorhandler.java:125) ... 64 more caused by: org.openqa.selenium.nosuchelementexception: unable find element id == search-box (warning: server did not provide stacktrace information)
searching online seems need set introduce_flakiness_by_ignoring_security_domains=true , struggling set in spring bean .xml config.
this have, please suggest corrections or let me know if going wrong way solve issue.
<bean id="browsercapabilities" class="org.openqa.selenium.remote.desiredcapabilities" > <constructor-arg index="0" value="internet explorer"/> <constructor-arg index="1" value="8"/> <constructor-arg index="2" value="windows"/> </bean> <bean id="iedrivercapabilitysetter" class="org.springframework.beans.factory.config.methodinvokingfactorybean"> <property name="targetobject" ref="browsercapabilities" /> <property name="targetmethod" value="setcapability" /> <property name="arguments"> <list> <value>org.openqa.selenium.ie.internetexplorerdriver.introduce_flakiness_by_ignoring_security_domains</value> <value>true</value> </list> </property> </bean> <bean id="driverprovider" class="org.jbehave.web.selenium.remotewebdriverprovider" > <constructor-arg ref="browsercapabilities"/> </bean>
Comments
Post a Comment