1
这里是我当前的代码:如何找到包含src部分的所有WebElements?
WebElement flyerContent = driver.findElement(By.className("wishabi-flyercontent"));
List<WebElement> pageItems = flyerContent.findElements(By.xpath("//img[contains(@src,'http://f.wishabi.net/flyers/611031/131463663056/3_0_1.jpg')]"));
的问题是,这只能找到一个项目。我想找到在src中以“http://f.wishabi.net/flyers”开头的所有项目。我怎样才能做到这一点?