Package com.codeborne.selenide.impl
Class WebElementsCollectionWrapper
- java.lang.Object
-
- com.codeborne.selenide.impl.WebElementsCollectionWrapper
-
- All Implemented Interfaces:
CollectionSource
@ParametersAreNonnullByDefault public class WebElementsCollectionWrapper extends java.lang.Object implements CollectionSource
-
-
Constructor Summary
Constructors Constructor Description WebElementsCollectionWrapper(Driver driver, java.util.Collection<? extends org.openqa.selenium.WebElement> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescription()Driverdriver()org.openqa.selenium.WebElementgetElement(int index)get Nth element of this collectionjava.util.List<org.openqa.selenium.WebElement>getElements()get elements of this collection (probably cached).voidsetAlias(java.lang.String alias)
-
-
-
Constructor Detail
-
WebElementsCollectionWrapper
public WebElementsCollectionWrapper(Driver driver, java.util.Collection<? extends org.openqa.selenium.WebElement> elements)
-
-
Method Detail
-
getElements
@CheckReturnValue @Nonnull public java.util.List<org.openqa.selenium.WebElement> getElements()
Description copied from interface:CollectionSourceget elements of this collection (probably cached).- Specified by:
getElementsin interfaceCollectionSource
-
getElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement getElement(int index)
Description copied from interface:CollectionSourceget Nth element of this collection- Specified by:
getElementin interfaceCollectionSource
-
description
@CheckReturnValue @Nonnull public java.lang.String description()
- Specified by:
descriptionin interfaceCollectionSource
-
driver
@CheckReturnValue @Nonnull public Driver driver()
- Specified by:
driverin interfaceCollectionSource
-
setAlias
public void setAlias(java.lang.String alias)
- Specified by:
setAliasin interfaceCollectionSource
-
-