Hide console of phantomJS driver

Viewed 1813

I'm using phantomJS driver (in python 3.3). I initialize it by

self._phantom = webdriver.PhantomJS('path/to/phantomJS.exe')

And this is OK, console doesn't appear. But when I build the project using cx_freeze to exe file, then the console does appear.

It's not much a problem, but my program opens about 3 windows and dialogs, and another windows (especially console) might be too confusing or distracting for customer.

Thank you for your advice.

1 Answers
Related