如何为Firefox设置Selenium Python环境 [英] How to set up a Selenium Python environment for Firefox

查看:89
本文介绍了如何为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.

  1. 安装Python(Python 3已经包含pip)
  2. 安装硒( pip安装硒 某些IDE,例如 Mozilla webdriver
  3. 享受!
  1. Install Python (Python 3 already contains pip)
  2. Install Selenium (pip install selenium or some IDEs like PyCharm propose to install libraries, just import Selenium)
  3. Download Mozilla webdriver
  4. Enjoy!

这篇关于如何为Firefox设置Selenium Python环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆