Suppress phantomjs console log in watir webdriver (zagorski software tester)

On March 28, 2015, in Syndicated, by Association for Software Testing
image credit:


In this short post I will describe how different environment could produce different result for the same tool.

Phantomjs is full web stack that enables tester to run headless browser automation. I am using phantomjs on MacOS and linux, but never on Windows.

When I started browser automation using phantomjs on Windows 7, I noticed a lot of log activity in Windows Powershell console window. That log was not present on MacOS or Linux platform. Log presented phantomjs web activities, like dom manipulation and javascript execution. I could not see more important information, and that was test result!

By using google, I found this switch, here is gist for that:

What is important is that this switch is not supported by firefox web-driver. So be careful how you will use that switch in your script.


Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!