Firefox issue
1. Selenium 3.0以上需要geckodriver
- 下载最新的geckodriver版本:Latest geckodriver
- 如果是tar.gz格式的包,先进行解压:
tar -xzvf geckodriver.gz
- 移置/usr/local/share/目录下,
mv -f geckodriver /usr/local/share/geckodriver
- 软连接:
ln -s /usr/loca/share/geckodriver /usr/local/bin/geckodriver
andln -s /usr/local/share/geckodriver /usr/bin/geckodriver
Chrome issue
2. Selenium 需要chromedriver
- 下载最新的chromedriver版本:Latest chromedriver
- 如果是zip格式的包,先进行解压:
unzip chromedriver.zip
- 移置/usr/local/share/目录下,
mv -f chromedriver /usr/local/share/chromedriver
- 软连接:
ln -s /usr/loca/share/chromedriver /usr/local/bin/chromedriver
andln -s /usr/local/share/chromedriver /usr/bin/chromedriver