search

Home  >  Q&A  >  body text

internet-explorer - 用pythonselenium怎么过ie8的安全证书

我有个问题就是用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/")

求大神们支个招~!

PHPzPHPz2776 days ago810

reply all(0)I'll reply

No reply
  • Cancelreply