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

io.github.kgress.scaffold.webelements.table.TableCell Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package io.github.kgress.scaffold.webelements.table;

import io.github.kgress.scaffold.webelements.AbstractWebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class TableCell extends AbstractWebElement {
    protected int columnLocation, rowLocation;

    public TableCell(By by, int columnLocation, int rowLocation) {
        super(by);
        this.columnLocation = columnLocation;
        this.rowLocation = rowLocation;
    }

    public TableCell(WebElement element, int columnLocation, int rowLocation) {
        super(element);
        this.columnLocation = columnLocation;
        this.rowLocation = rowLocation;
    }

    public TableCell(WebElement parentElement) {
        super(parentElement);
    }

    /**
     * Get column index of table cell.
     *
     * @return {@code int} - column index
     */
    public int getColumnLocation() {
        return columnLocation;
    }

    /**
     * Get row index of table cell.
     *
     * @return {@code int} - row index
     */
    public int getRowLocation() {
        return rowLocation;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy