СК
Size: a a a
СК
AP
AP
AP
СК
AP
AP
СК
СК
СК
S1
S1
AP
i
AtomicInteger menuItemsCount = new AtomicInteger();
new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(10))
.pollingEvery(Duration.ofSeconds(2))
.withMessage("Еще не всё")
.until(e -> {
var newMenuItemsCount = driver.findElements(By.cssSelector("menuLocator")).size();
if (menuItemsCount.get() != newMenuItemsCount){
menuItemsCount.set(newMenuItemsCount);
return false;
} else {
return true;
}
});
AP
AtomicInteger menuItemsCount = new AtomicInteger();
new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(10))
.pollingEvery(Duration.ofSeconds(2))
.withMessage("Еще не всё")
.until(e -> {
var newMenuItemsCount = driver.findElements(By.cssSelector("menuLocator")).size();
if (menuItemsCount.get() != newMenuItemsCount){
menuItemsCount.set(newMenuItemsCount);
return false;
} else {
return true;
}
});
i
AP
AP
AP