Class HtmlTable
java.lang.Object
net.thucydides.core.pages.components.HtmlTable
public class HtmlTable
extends java.lang.Object
Class designed to make it easier reading from and reasoning about data in HTML tables.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHtmlTable.CellReaderStrategystatic classHtmlTable.HtmlTableBuilder -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancontainsRowElementsWhere(BeanMatcher... matchers)java.util.List<org.openqa.selenium.WebElement>filterRows(BeanMatcher... matchers)static java.util.List<org.openqa.selenium.WebElement>filterRows(org.openqa.selenium.WebElement table, BeanMatcher... matchers)org.openqa.selenium.WebElementfindFirstRowWhere(BeanMatcher... matchers)java.util.List<org.openqa.selenium.WebElement>firstRowElements()java.util.List<java.lang.String>getHeadings()java.util.List<org.openqa.selenium.WebElement>getRowElements()java.util.List<org.openqa.selenium.WebElement>getRowElementsFor(java.util.List<java.lang.String> headings)java.util.List<org.openqa.selenium.WebElement>getRowElementsWhere(BeanMatcher... matchers)java.util.List<java.util.Map<java.lang.Object,java.lang.String>>getRows()java.util.List<org.openqa.selenium.WebElement>headingElements()static HtmlTableinTable(org.openqa.selenium.WebElement table)HtmlTablereadingCellContentsWith(HtmlTable.CellReaderStrategy cellReaderStrategy)static java.util.List<java.util.Map<java.lang.Object,java.lang.String>>rowsFrom(org.openqa.selenium.WebElement table)voidshouldHaveRowElementsWhere(BeanMatcher... matchers)voidshouldNotHaveRowElementsWhere(BeanMatcher... matchers)static HtmlTable.HtmlTableBuilderwithColumns(java.lang.String... headings)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HtmlTable
public HtmlTable(org.openqa.selenium.WebElement tableElement) -
HtmlTable
public HtmlTable(org.openqa.selenium.WebElement tableElement, java.util.List<java.lang.String> headings)
-
-
Method Details
-
readingCellContentsWith
-
inTable
-
getRows
public java.util.List<java.util.Map<java.lang.Object,java.lang.String>> getRows() -
findFirstRowWhere
-
containsRowElementsWhere
-
shouldHaveRowElementsWhere
-
shouldNotHaveRowElementsWhere
-
withColumns
-
getHeadings
public java.util.List<java.lang.String> getHeadings() -
headingElements
public java.util.List<org.openqa.selenium.WebElement> headingElements() -
firstRowElements
public java.util.List<org.openqa.selenium.WebElement> firstRowElements() -
getRowElementsFor
public java.util.List<org.openqa.selenium.WebElement> getRowElementsFor(java.util.List<java.lang.String> headings) -
getRowElements
public java.util.List<org.openqa.selenium.WebElement> getRowElements() -
getRowElementsWhere
-
rowsFrom
public static java.util.List<java.util.Map<java.lang.Object,java.lang.String>> rowsFrom(org.openqa.selenium.WebElement table) -
filterRows
public static java.util.List<org.openqa.selenium.WebElement> filterRows(org.openqa.selenium.WebElement table, BeanMatcher... matchers) -
filterRows
-