Python selenium error when trying to launch firefox

前端 未结 8 1347
时光取名叫无心
时光取名叫无心 2020-12-01 16:35

I am getting an error when trying to open Firefox using Selenium in ipython notebook. I\'ve looked around and have found similar errors but nothing that exactly matches the

8条回答
  •  抹茶落季
    2020-12-01 16:53

    those 2 packages are needed (ubuntu)!

    apt-get update
    apt-get install -y xorg xvfb firefox dbus-x11 xfonts-100dpi xfonts-75dpi xfonts-cyrillic
    
    sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
    sudo apt install linuxbrew-wrapper
    brew install geckodriver
    

    also what working for me is to use chrome instead of firefox check this tutorial: https://christopher.su/2015/selenium-chromedriver-ubuntu/

提交回复
热议问题