com.sdl.selenium.web.table.IColumns Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Testy Show documentation
Show all versions of Testy Show documentation
Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications.
(optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)
The newest version!
package com.sdl.selenium.web.table;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public interface IColumns {
int getHeadersCount();
default List getColumns(int columns, int[] excludedColumns) {
List excluded = Arrays.stream(excludedColumns).boxed().collect(Collectors.toList());
return IntStream.rangeClosed(1, columns)
.filter(column -> !excluded.contains(column))
.boxed()
.collect(Collectors.toList());
}
default List getColumns(int[] excludedColumns) {
int columns = getHeadersCount();
return getColumns(columns, excludedColumns);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy