python,selenium初步--S

  1.  selenium,webDriver安装
      
    https://sites.google.com/a/chromium.org/chromedriver/downloads
    http://npm.taobao.org/mirrors/chromedriver/

     tips:安装WebDriver的时候,要看自己的driver是什么版本然后下载对应的驱动,如图
      

  2. 实例代码:
    1 from selenium import webdriver
    2 driver = webdriver.Chrome(r'D:seleniumdriverchrome79chromedriver.exe')
    3 driver.get('http://www.51job.com')
  3.  元素操作:
      
  4.  等待:
------------------------这是用来做笔记的,可能不够详细,如有问题可以留言-------------------------
原文地址:https://www.cnblogs.com/focusta/p/12177700.html