- Start a command prompt using the
cmd.exe
program and run thepip
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