试了timeout发现老抛异常还捕获不到
于是
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import time
desired_capabilities = DesiredCapabilities().CHROME
desired_capabilities['pageLoadStrategy'] = 'none'
driver = webdriver.Chrome(desired_capabilities=desired_capabilities)
driver.get('http://www.baidu.com')
# 一秒后不再加载
time.sleep(1)
hahaha