解決selenium無法開啟測試FIREFOX的問題

錯誤訊息:selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

 

問題討論串:https://stackoverflow.com/questions/40208051/selenium-using-python-geckodriver-executable-needs-to-be-in-path

 

我試過最快的解決方法: (OK,可使用)

The easiest way for Windows!

Download the latest version of geckodriver from here. Add the geckodriver.exe file to the Python directory (or any other directory which already in PATH). This should solve the problem (it was tested on Windows 10).

 

留言

這個網誌中的熱門文章

溪和食品有限公司 - 觀光工廠接待人員(薪約30K.免費供餐),今天投遞此份工作。

載入JavaScript code的最佳時機