在某些情况下,我会收到标题中显示的错误。脚本刚刚停止,并显示此错误。
我在网上查找了有关此错误的某些情况,但老实说,我并不真正理解给出的解决方案。
我找到了以下代码,但是我不确定它是否会有所帮助或如何实现。
任何人都可以解释它的作用,或者是否有助于以正确的方式实现它?
interp2d
TimeoutException跟踪(最近一次通话) 在 113#saveFile.close() 114 -> 115 jaap_spider(310)
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
#timeout = 30
#try:
#WebDriverWait(browser, timeout).until(EC.visibility_of_element_located((By.ID, "Level_1_Category_No1")))
#except TimeoutException:
#browser.quit()