All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sdl.selenium.web.table.IRow Maven / Gradle / Ivy

Go to download

Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications. (optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)

There is a newer version: 20.08.432.0_b2d2a09
Show newest version
package com.sdl.selenium.web.table;

import com.sdl.selenium.web.IText;
import com.sdl.selenium.web.IWebLocator;

import java.util.ArrayList;
import java.util.List;

public interface IRow extends IWebLocator, IText {

    default List getColumns(int columns, int[] excludedColumns) {
        List excluded = new ArrayList<>();
        for (int excludedColumn : excludedColumns) {
            excluded.add(excludedColumn);
        }

        List columnsList = new ArrayList<>();
        for (int i = 1; i <= columns; i++) {
            if (!excluded.contains(i)) {
                columnsList.add(i);
            }
        }
        return columnsList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy