Wednesday, 29 March 2017

[Selenium] 3 selenium installation using pip

Selenium installation using pip for Windows users


  1. Start a command prompt using the cmd.exe program and run the pip command as given below to install selenium.
    啟動命令提示符 cmd.exe 程序並運行 pip 命令來安裝 selenium.
    C:\Python35\Scripts\pip.exe install selenium
     
Now you can run your test scripts using Python. For example, if you have created a Selenium based script and saved it inside C:\my_selenium_script.py,(If you don't have file, you can download it from my github.- simpleSeleniumTest.py) you can run it like this:

現在您可以使用Python運行測試腳本。例如,如果您創建了基於Selenium的腳本並將其保存在 C:\my_selenium_script.py,(如果沒有,可以從我的github下載- simpleSeleniumTest.py)  則可以像這樣運行: : 
C:\Python35\python.exe C:\my_selenium_script.py


No comments:

Post a Comment

how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd

test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...