当我在具有不同xpath的同一页面上有15+按钮时,无法继续到下一步按钮 List<WebElement> alllinks = driver.findElements(By.xpath("//a[textSystem.out.println("does not starts with E so not clicking"); }
} catch (StaleElement
我正在尝试一页一页地打印搜索结果的所有标题。
搜索谷歌,然后打印第一页结果的标题是成功的。但是,当我尝试单击下一步按钮,然后打印第二页结果的标题时,我得到了StaleElementReferenceException: Element not found in the cache错误。单击第一页上的下一步按钮后,如何打印第二页标