selenium使用WebDriverWait报错 Cannot call non W3C standard command while in W3C mode问题解决
之前在使用WebDriverWait库用于设置显性等待时间,但是运行代码时会出现Cannot call non W3C standard command while in W3C mode的错误,这个是由于谷歌浏览器自带W3C检查,所以报错,只需要在浏览器启动时进入W3C即可
from selenium.webdriver.chrome.options import Options
option = Option()
option.add_experimental_option('w3c', False)
driver = webdriver.Chrome(options=option)