我在selenium java项目中不断收到一条错误消息。System.out.println("Size of active links and images --->"错误信息是:
线程“主”org.openqa.selenium.StaleElementReferenceException:陈旧元素引用中的异常:元素<
访问一个页面,然后返回,然后移动到下一个页面,依此类推。使用我的代码,我可以访问第一页,然后返回到上一页,但我不能访问下一页并得到一个陈旧的元素引用错误。我通读了关于这个错误的答案,但仍然不知道我的代码在哪里更改了状态……"""Get the browser (a "driver")."""
# find the pat
Click方法继续返回Stale Element Exception
public @FindBy(xpath = ".category_menu'//atext()='Supercars‘“) WebElement link_Supercars;
org.openqa.selenium.StaleElementReferenceException:陈旧元素引用:元素</em