<译>Selenium Python Bindings 1 - Installation

Installation

    1. Introduction

      Selenium Python bindings 提供了一个简单的API来使用Selenium WebDriver编写使用功能/验收测试。通过Selenium Python API,您可以通过直观的方式来访问Selenium WebDriver的所有功能。

      Selenium Python bindings 提供了一个便捷的API来访问Selenium WebDrivers,如Firefox,IE,Chrome浏览器,远程连接等。目前支持的Python版本是2.7,3.2,3.3和3.4。

      本文档介绍了Selenium 2 webdriver API。Selenium1/ Selenium RC API,这里不讨论。

    2. Downloading Python bindings for Selenium
      您可以从页面的PyPI下载Selenium Python bindings package。然而,更好的方法是使用pip安装Selenium package。 Python3.4有可用于标准库的pip。使用pip,可以安装selenium是这样的: 
      pip install selenium

      (具体安装方法参考我的笔记:http://www.cnblogs.com/wuzhiming/p/3455972.html

    3. Detailed instructions for Windows users
      1. Install Python 3.4 using the MSI available in python.org download page.

      2. Start a command prompt using the cmd.exe program and run the pip command as given below to install Selenium.

        C:\Python34\Scripts\pip.exe install selenium
        
        

       

 

你可能感兴趣的:(selenium)