com.codeborne.selenide.CollectionCondition [src]

Collection conditions are used in the shouldBe/shouldHave constructs for the object of ElementsCollection class. It is recommended to import needed conditions statically in order to achive all advantages of the readable code.

  • empty // e.g. $$("#list li").shouldBe(empty)

  • size(int) // e.g. $$("#list li").shouldHave(size(10))

  • sizeGreaterThan(int)

  • sizeGreaterThanOrEqual(int)

  • sizeLessThan(int)

  • sizeLessThanOrEqual(int)

  • sizeNotEqual(int)

  • texts(String... substrings)

  • exactTexts(String... wholeTexts)

Last updated