selenium+python 環境搭建(windows)

來源:互聯網
上載者:User

標籤:

用的selenium2.0

selenium2.0=selenium1.0+WebDriver

安裝:

1、下載、安裝python,我使用的是python3.3.2

2、配置環境變數Path,在字串末尾加一個分號 ";"然後輸入python的安裝路徑

  設定好環境變數後,在cmd裡面輸入python會看到

  Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32

  這樣類似的資訊,說明python的安裝配置完成。

3、下載、安裝setuptools(這個是python的基礎工具包)

  下載完成後,從命令列進入setuptools的檔案目錄,然後輸入

  python setup.py install

4、下載、安裝pip(這是python的安裝包管理工具)

  下載完成後,從命令列進入pip的檔案目錄,然後輸入

  python setup.py install

5、線上安裝selenium

  安裝pip完成後,從命令列進入python安裝目錄下的Scripts檔案夾,然後輸入

  pip install -U selenium

 

  至此,selenium+python的自動化測試環境搭建完成。

  

  

  

  

selenium+python 環境搭建(windows)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.