VC
Size: a a a
VC
СР
VC
СР
СР
VC
СР
СР
public static CollectionCondition text(final String text) {
return new CollectionCondition() {
@Override
public void fail(final WebElementsCollection collection, final List<WebElement> elements, final Exception lastError, final long timeoutMs) {
throw new ex
}
@Override
public boolean apply(@NullableDecl final List<WebElement> input) {
return input.stream().anyMatch(webElement -> webElement.getText().equals(text));
}
};
}СР
VC
SV
A
A
AV
VC
AS
AS
$$("div.x-grid-cell-inner").shouldHave(size(5));AS
$$("div.x-grid-cell-inner").filter(visible).shouldHave(size(5));, если уж хочется упороться.VC
LY