phantomjs_path = 'C:\\Python27\\misc\\phantomjs-1.9.7-windows\\phantomjs.exe'
browser = webdriver.PhantomJS(executable_path=phantomjs_path,
    service_log_path=os.path.devnull)
browser.set_window_size(1400, 1000)
Selenium с GhostDriver в Python в Windows