如何为Firefox设置Selenium Python环境 [英] How to set up a Selenium Python environment for Firefox
本文介绍了如何为Firefox设置Selenium Python环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为Firefox设置Selenium Python环境?
How can I set up a Selenium Python environment for Firefox?
我正在使用Firefox 50,Selenium 3,Python 3.5.我尝试了很多二进制操作,并在环境变量 PATH 等中复制了geckodriver.
I am using Firefox 50, Selenium 3, Python 3.5. I tried with many things binary and copying the geckodriver in the environment variable PATH, etc.
推荐答案
据我了解,您想使用Selenium库在Python中进行开发并与Firefox Webdriver一起使用.
As far as I understand, you want to develop in Python, using the Selenium library and work with the Firefox webdriver.
- 安装Python(Python 3已经包含pip)
- 安装硒(
pip安装硒
或某些IDE,例如 Mozilla webdriver - 享受!
- Install Python (Python 3 already contains pip)
- Install Selenium (
pip install selenium
or some IDEs like PyCharm propose to install libraries, just import Selenium) - Download Mozilla webdriver
- Enjoy!
这篇关于如何为Firefox设置Selenium Python环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文