我正在运行 PhantomJS
driver = webdriver.PhantomJS(executable_path='E:\phantomjs\bin\phantomjs.exe')
Run Code Online (Sandbox Code Playgroud)
但程序失败了,说
AttributeError:模块“selenium.webdriver”没有属性“PhantomJS”。
操作系统是Windows 10。我的python版本是3.6,selenium版本是3.8.0,phantomjs版本是2.1.1。所有这些都是最新的。
如果有人可以伸出援手,谢谢!
以下是selenium版本的截图。