propely工作,我只是做了硒的webdriver不能在Firefox
from selenium import webdriver
browser=webdriver.Firefox()
browser.get("http://google.co.in")
我應該有哪些硒的版本安裝 1)如果非要使用Firefox 32.0只。
錯誤是
WebDriverException:在握手
缺少 'marionetteProtocol' 字段
propely工作,我只是做了硒的webdriver不能在Firefox
from selenium import webdriver
browser=webdriver.Firefox()
browser.get("http://google.co.in")
我應該有哪些硒的版本安裝 1)如果非要使用Firefox 32.0只。
錯誤是
WebDriverException:在握手
缺少 'marionetteProtocol' 字段
可以CMD pip install selenium
在其中鍵入將直接安裝最新的硒,並希望它會工作,如果不是,請發送你所得到的錯誤。
更新 –
您使用太舊的瀏覽器的問題。請檢查連接(https://github.com/mozilla/geckodriver/releases「)。你可以用Python代碼還檢查鏈接(https://github.com/jasham/naukri/blob/master/n_update.py ?) –
雅這就是爲什麼我提到火狐32.0只,而不是升級version.I有使用硒可以通過任何機會,只使用32.0 –
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver –