Class CollectionSnapshot

  • All Implemented Interfaces:
    CollectionSource

    @ParametersAreNonnullByDefault
    public class CollectionSnapshot
    extends java.lang.Object
    implements CollectionSource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()  
      Driver driver()  
      org.openqa.selenium.WebElement getElement​(int index)
      get Nth element of this collection
      java.util.List<org.openqa.selenium.WebElement> getElements()
      get elements of this collection (probably cached).
      void setAlias​(java.lang.String alias)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionSnapshot

        public CollectionSnapshot​(CollectionSource collection)
    • Method Detail

      • getElements

        @CheckReturnValue
        @Nonnull
        public java.util.List<org.openqa.selenium.WebElement> getElements()
        Description copied from interface: CollectionSource
        get elements of this collection (probably cached).
        Specified by:
        getElements in interface CollectionSource
      • getElement

        @CheckReturnValue
        @Nonnull
        public org.openqa.selenium.WebElement getElement​(int index)
        Description copied from interface: CollectionSource
        get Nth element of this collection
        Specified by:
        getElement in interface CollectionSource
      • description

        @CheckReturnValue
        @Nonnull
        public java.lang.String description()
        Specified by:
        description in interface CollectionSource