How to properly stop phantomjs execution

前端 未结 7 890
星月不相逢
星月不相逢 2020-11-29 21:30

I initiated and close phantomjs in Python with the following

from selenium import webdriver    
driver = webdriver.PhantomJS()
driver.get(url)
h         


        
7条回答
  •  遥遥无期
    2020-11-29 22:11

    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()
    

提交回复
热议问题