1、安裝ptyhon3
2、安裝jetbrains pycharm 2018.1.1 x64, 也就是python編輯器ide
進入file--》setting--》project:專案名--》project interpreter--》右邊的加號【+】--》輸入selenium找到這個包--》左下角install package-->安裝成功)
5、我安裝的是chrome 然後安裝瀏覽器驅動:
python目錄到這:c:\python36
6、ok,一切準備就緒,可以愉快的跑起你的selenium了
不相容得話去這裡 下相容得版本
所有瀏覽器的驅動在這:
Python爬蟲利器之selenium有無介面
selenium通過模擬瀏覽器完成一些操作,但是在一些伺服器上是沒有圖形介面的,自然使用selenium操作需要在無介面操作。from selenium import webdriver driver webdriver.chrome driver.get driver.quit python3 f...
python自動化之selenium
一 環境 1 selenium 安裝 pip install selenium 版本號 後可省略,預設安裝最新版本 檢視 pip show selenium 解除安裝 pip uninstall selenium 2 瀏覽器驅動 以chrome為例 國內可訪問 windows 解壓後將驅動移動至ch...
Selenium自動化測試之python應用
selenium支援多種程式語言,本篇介紹selenium自動化測試之python應用,基礎入門篇。環境搭建 pycharm python3.7 selenium 使用最新版 2 python3.7 安裝成功後,不需配置環境變數 4 在cmd視窗中執行 pip install selenium 5 ...