dump(hoge, 'window');
答案 0 :(得分:1)
使用FindElements代替FindElement,如下所示:
.box {
padding: 1em;
border-width: 16px;
border-image: 16 repeating-linear-gradient(-45deg, red 0, red 1em, transparent 0, transparent 2em, #58a 0, #58a 3em, transparent 0, transparent 4em);
max-width: 20em;
font: 100%/1.6 Baskerville, Palatino, serif;
}
并且
Boolean isMyBuyersPresent = driver.findElements(By.yourLocator).size() > 0