0
sudo apt-get install selenium
sudo apt-get install phantomjs
我安裝了ubuntu 16.04下的selenium和phantomjs。但是,當爲什麼我不能在Selenium中使用PhantomJs
from selenium import webdriver
browser = webdrive.PhantomJs()
Python解釋器給出了錯誤味精,AttributeError的: '模塊' 對象有沒有屬性 'PhantomJs'。我不知道出了什麼問題。任何人都可以給一些建議。我將非常感激。
調用PhantomJS()時錯過了'webdriver'的最後一個字母 –