selenium启动 IE11方法
生活随笔
收集整理的這篇文章主要介紹了
selenium启动 IE11方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
準備:
1.python+selenium開發環境
2.下載IEDriverServer.exe
方法:
1.將IEDriverServer.exe 拷貝到python跟目錄下,例如:C:\Python27
2.代碼如下:
# -*- coding: utf-8 -*-from selenium import webdriver
import time
#IE11打開百度首頁
driver=webdriver.Ie()
driver.get("https://www.baidu.com")
time.sleep(10)
driver.close()
?
轉載于:https://www.cnblogs.com/rooott/p/5404673.html
總結
以上是生活随笔為你收集整理的selenium启动 IE11方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 012.对netmap API的解读
- 下一篇: windows使用python3.4生成