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

nl.hsac.fitnesse.fixture.util.selenium.by.grid.Row Maven / Gradle / Ivy

There is a newer version: 5.3.17
Show newest version
package nl.hsac.fitnesse.fixture.util.selenium.by.grid;

import nl.hsac.fitnesse.fixture.util.selenium.by.GridBy;
import nl.hsac.fitnesse.fixture.util.selenium.by.XPathBy;

/**
 * Finds a row in a grid.
 */
public class Row {
    public static class InNumber extends XPathBy {
        public InNumber(int rowIndex) {
            super("(.//tr[boolean(td)])[%s]", Integer.toString(rowIndex));
        }
    }

    public static class WhereIs extends XPathBy {
        public WhereIs(String selectOnValue, String selectOnColumn) {
            super(GridBy.getXPathForColumnInRowByValueInOtherColumn(selectOnValue, selectOnColumn) + "/..");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy