📜  python selenium firefox 处理 ssl 绕过 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:26.335000             🧑  作者: Mango

代码示例1
#NOT the correct way and it doesn't work EVERY time, but it works for me
from selenium import webdriver
driver = webdriver.Firefox()
site ='https://your-site.pt'
try:
    driver.get(site)
    time.sleep(4)
except:
    Button = driver.find_element_by_id("enableTls10Button") 
    Button.click()
   #NOT the correct way and it doesn't work EVERY time, but it works for me