internet-explorer - 用pythonselenium怎么过ie8的安全证书
PHPz
PHPz 2017-04-18 09:19:52
0
0
797

我有个问题就是用python 的selenium怎么过安全证书。各种方法都试过了但是不行。也通过浏览器面解决。信任的站点也过不去。

#coding:utf-8
import os
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

iedriver = "C:\Program Files (x86)\Internet Explorer\IEDriverServer.exe"
os.environ["webdriver.ie.driver"] = iedriver
driver = webdriver.Ie(iedriver)

driver.get("https://www.12306.cn/mormhweb/")

求大神们支个招~!

PHPz
PHPz

学习是最好的投资!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!