【尚未解决】关于webdriver中浏览器从页面回退后通过id/xpath取得元素出错的问题
背景:在学习用EventFiringWebDriver做事件侦听时,从豆瓣首页跳转到百度首页,然后navigate().back()回到豆瓣的时候,点击豆瓣搜索按钮时,用By.xpath(),就报错:
org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the
原创
2017-10-19 11:27:47 ·
545 阅读 ·
0 评论