This content has been marked as final.
Show 1 reply
-
1. Re: Maximizing logging in Drone/WebDriver using phantomjs
mjobanek Apr 12, 2016 2:47 AM (in response to starksm64)Hi,
since Drone 2.0.0.CR1 there is a possibility to pass command-line arguments to both Ghost Driver and PhantomJS. For this purpose there are two parameters:
phantomjs.cli.args for PhantomJS
phantomjs.ghostdriver.cli.args for Ghost Driver
as a value of these parameters use your desired command-line arguments in the very same form and way as you would use it on command line (separated by white space). eg:
<property name="phantomjs.cli.args">--load-images=false --webdriver-loglevel=DEBUG</property>
According to this file phantomjs/config.cpp at master · ariya/phantomjs · GitHub, the finest level of PhantomJS' loggging should be DEBUG. So, in your case, there should be sufficient if you define this property in your arquillian.xml:
<property name="phantomjs.cli.args">--webdriver-loglevel=DEBUG</property>