*我stale element Exception
在这部分得到了一个:
我从表中获取 id
这是导致陈旧元素的部分:
latestId.click();
我试过:使用下面的代码:
WebDriverWait wait = new WebDriverWait(driver,10);```
wait.until(ExpectedConditions.refreshed(ExpectedConditions.stalenessOf(latestId)));
基本上在方法中,因为 id.click() 和 createdvalue("id",latestid.gettexxt()) 都存在它导致问题。
我能得到一个解决方案吗..如果需要可以添加更多信息*