I initiated and close phantomjs in Python with the following
phantomjs
from selenium import webdriver driver = webdriver.PhantomJS() driver.get(url) h
I was having a similar issue on Windows machine. I had no luck with either
driver.close()
or
driver.quit()
actually closing out of the PhantomJS window, but when I used both, the PhantomJS window finally closed and exited properly.
driver.close() driver.quit()