Package com.codeborne.selenide
Class ElementsCollection
java.lang.Object
com.codeborne.selenide.BaseElementsCollection<SelenideElement,ElementsCollection>
com.codeborne.selenide.ElementsCollection
- All Implemented Interfaces:
Iterable<SelenideElement>
- Direct Known Subclasses:
SelenideAppiumCollection
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codeborne.selenide.BaseElementsCollection
BaseElementsCollection.SelenideElementIterable<T extends SelenideElement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionElementsCollection(Driver driver, String cssSelector) ElementsCollection(Driver driver, Collection<? extends org.openqa.selenium.WebElement> elements) ElementsCollection(Driver driver, org.openqa.selenium.By seleniumSelector) ElementsCollection(CollectionSource collection) protectedElementsCollection(CollectionSource collection, Class<? extends SelenideElement> elementClass) Lets a subclass produce elements of a more specific class thanSelenideElement, e.g. -
Method Summary
Methods inherited from class com.codeborne.selenide.BaseElementsCollection
as, asDynamicIterable, asFixedIterable, attributes, describe, exclude, excludeWith, filter, filterBy, find, findBy, first, first, get, isEmpty, iterator, last, last, should, should, should, shouldBe, shouldBe, shouldHave, shouldHave, size, snapshot, stream, texts, toString, waitUntilMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ElementsCollection
-
ElementsCollection
public ElementsCollection(Driver driver, Collection<? extends org.openqa.selenium.WebElement> elements) -
ElementsCollection
-
ElementsCollection
-
ElementsCollection
protected ElementsCollection(CollectionSource collection, Class<? extends SelenideElement> elementClass) Lets a subclass produce elements of a more specific class thanSelenideElement, e.g. a plugin module's own element interface, while keeping this class' own generic parameter (and therefore the declared return type ofget()/first()/last()/find()/findBy()/iterator()/stream()) unchanged.
-
-
Method Details
-
create
- Specified by:
createin classBaseElementsCollection<SelenideElement,ElementsCollection>
-