这意味着在页面中更改的元素或元素被删除,此链接中的完整参考http://www.seleniumhq.org/exceptions/stale_element_reference.jsp
解决此问题的一种方法是,您可以重试,可能类似于
bool staleElement = true; while(staleElement){ try{ driver.FindElement(By.XPath(link_click), 10).Click(); staleElement = false; } catch(StaleElementReferenceException e){ staleElement = true; }}


