python+selenium环境配置

一、selenium 安装(三种方法)
  1.自己下载地址:https://pypi.org/project/selenium/

  2.使用命令安装 pip install -U selenium

  3.在pycharm里使用工具安装,参考

  https://www.cnblogs.com/sunshineapple/p/9804526.html

二、验证是否已经安装成功

# coding = utf-8
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
# driver.quit()

  

原文地址:https://www.cnblogs.com/sunshineapple/p/9882241.html