Custom Webdriver ignores language when provided by pom or command line?

79 views
Skip to first unread message

m...@itscope.de

unread,
Jun 10, 2016, 10:57:57 AM6/10/16
to Serenity BDD Users Group
Hi,

I have an interesting case here. When I use in my serenity.properties

webdriver.driver = provided
webdriver.provided.type = RedFirefox
webdriver.provided.RedFirefox = de.acme.app.testbench.tests.EnhRedFirefoxWebDriver

It launches my custom EnhRedFirefoxWebdriver with its german profile and works like a charm. Same is true for my custom PhantomJS. But when I erase the stuff in the serenity.properties and put
it in the pom.xml, like so

<profile>
<
id>driver_enh_firefox</id>
<
properties>
<
de.acme.testbench.localheadless>false</de.acme.testbench.localheadless>

<
webdriver.driver>provided</webdriver.driver>
<
webdriver.provided.type>RedFirefox</webdriver.provided.type>
<
webdriver.provided.RedFirefox>de.acme.app.testbench.tests.EnhRedFirefoxWebDriver</webdriver.provided.RedFirefox>
</
properties>
</profile>

it ignores it. The tests start, but with the default firefox in en profile. Bug or my fault? If it's my fault: How can I change the custom webdriver in the pom? The goal is to choose the webdriver in intellijs maven projects view, and run any test you want.
Jenkins should get command line args passed, for the custom webdriver to be chosen.


Reply all
Reply to author
Forward
0 new messages