Class DefaultSeleniumTable<RowType extends TableRow>

    • Constructor Detail

      • DefaultSeleniumTable

        public DefaultSeleniumTable()
    • Method Detail

      • isDisplayed

        public boolean isDisplayed()
        Description copied from interface: Displayable
        Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.
        Specified by:
        isDisplayed in interface Displayable
        Returns:
        true, if the element is displayed.
      • setTypeArguments

        public void setTypeArguments​(java.util.List<java.lang.reflect.Type> types)
        Description copied from interface: TypeArgumentAware
        Sets the type arguments. The number of types in the list has to be the same as the number of the type's type arguments.
        Specified by:
        setTypeArguments in interface TypeArgumentAware
        Parameters:
        types - the type arguments
      • getVisibleRows

        public java.util.List<RowType> getVisibleRows()
        Description copied from interface: Table
        Returns all visible TableRows. The rows are ordered by their occurrence on the website.
        Specified by:
        getVisibleRows in interface Table<RowType extends TableRow>
        Returns:
        all visible rows of the table
      • findSingleVisibleRow

        public RowType findSingleVisibleRow​(java.util.function.Predicate<? super RowType> rowSearchCriteria)
        Description copied from interface: Table
        Returns a single visible TableRow by searching for the row which fulfills the selections criteria. Xtend-Usage:
         
         findSingleVisibleRow[column1.text == "Value1" && column2.text == "Value2"]
          
        Java-Usage:
         
         findSingleVisibleRow(row -> row.getColumn1().getText().equals("Value1") && row.getColumn2().getText().equals("Value2"))
          
        If more than one row matches the criteria the first occurrence is returned. If no row has been found a NoSuchElementException is thrown.
        Specified by:
        findSingleVisibleRow in interface Table<RowType extends TableRow>
        Parameters:
        rowSearchCriteria - Criteria which has to be fulfilled
        Returns:
        the first row which matches the rowSearchCriteria
      • findVisibleRows

        public java.util.List<RowType> findVisibleRows​(java.util.function.Predicate<? super RowType> rowSearchCriteria)
        Description copied from interface: Table
        Returns visible TableRows by searching for rows which fulfills the selections criteria. Xtend-Usage:
         
         findVisibleRows[column1.text == "Value1" && column2.text == "Value2"]
          
        Java-Usage:
         
         findVisibleRows(row -> row.getColumn1().getText().equals("Value1") && row.getColumn2().getText().equals("Value2"))
          
        Specified by:
        findVisibleRows in interface Table<RowType extends TableRow>
        Parameters:
        rowSearchCriteria - Criteria which has to be fulfilled
        Returns:
        all rows which match the rowSearchCriteria
      • getRowsInternal

        protected java.util.List<RowType> getRowsInternal​(java.util.function.Predicate<? super RowType> rowSearchCriteria,
                                                          boolean returnFirstMatch)