WebDriverException: Message: 'phantomjs.exe' executable needs to be in PATH.
网上的某测试代码:
from selenium import webdriver
driver = webdriver.PhantomJS(executable_path="C:\Python27\Scripts\phantomjs-2.1.1-windows\bin\phantomjs.exe")
driver.get("http://www.baidu.com")
dat
原创
2017-02-17 19:34:32 ·
5591 阅读 ·
2 评论