python_selenium_StaleElementReferenceException

try:
self.driver.find_element(*LogInLocators.submit_btn).send_keys(Keys.ENTER)
except StaleElementReferenceException as msg:
print("unable to locate element submit_btn%s", msg)
print("relocate element submit_btn")
self.driver.find_element(*LogInLocators.submit_btn).send_keys(Keys.ENTER)
上一篇:Java知识点归总一之堆栈


下一篇:在线程池里面执行