When I use selenium to automate, I find sometimes I will get the Exception "Message: timeout (Session info: headless chrome=77.0.3865.90)",
Message: timeout (Session info: headless chrome=77.0.3865.90)
and I don't know what happened.
I tried to Google but I couldn't find the reason.
try:
li.click()
browser.find_element_by_xpath('//div[@class="user-info"]/div[@class="user-info-detail"]/a').get_attribute('href')
except Exception as e:
print(e)
"Message: timeout (Session info: headless chrome=77.0.3865.50)", sometimes I will get the exception but in general it won't.