I'm using Python and the selenium webdriver to run PhantomJS.
from selenium import webdriver
b = webdriver.PhantomJS()
I would like for the PhantomJS shell to automatically be hidden as soon as it starts up. I mistakenly assumed that you might be able to do this via b.set_window_position()
or b.set_window_size()
, but it seems these adjust settings of the headless browser, which isn't visible anyway. Is there any way to hide the window?