nl.hsac.fitnesse.fixture.util.selenium.by.grid.Row Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-fixtures Show documentation
Show all versions of hsac-fitnesse-fixtures Show documentation
Fixtures to assist in testing via FitNesse
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