Ruby selenium webdriver unable to find Mozilla geckodriver

前端 未结 6 2093
名媛妹妹
名媛妹妹 2021-01-02 00:21

I have geckodriver installed in my development directory

ls | grep geckodriver
geckodriver
geckodriver-v0.11.1-linux64.tar.gz

I also exported

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 00:54

    Download geckodriver and add it to your PATH

    cd ~/Downloads/
    wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
    tar -zxvf geckodriver-v0.24.0-linux64.tar.gz
    sudo mv geckodriver /usr/local/bin/
    

    Note: That's currently the path for the latest release. If you need another release, modify the download path accordingly.

提交回复
热议问题