com.codeborne.selenide.ElementsCollection[src][javadoc]
This is the class returned by$$
method. It contains a list of web elements with additionals methods:
Assertions, which trigger the DOM search
- shouldBe) - e.g.
$$(".errors").shouldBe(empty)
- shouldHave) - e.g.
$$("#mytable tbody tr").shouldHave(size(2))
Addtitional filtering, they still do not trigger DOM search and can be safely saved in a variable.
- get(int) - returns n-th element as
SelenideElement
and still do _not _trigger DOM search or Collection bounds check - find) - e.g.
$$("#multirowTable tr").findBy(text("Norris"))
- filter) - e.g.
$$("#multirowTable tr").filterBy(text("Norris"))
- exclude) - e.g.
$$("#multirowTable tr").excludeWith(text("Chuck"))