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 class
HtmlTable.CellReaderStrategy
static class
HtmlTable.HtmlTableBuilder
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
containsRowElementsWhere(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.WebElement
findFirstRowWhere(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 HtmlTable
inTable(org.openqa.selenium.WebElement table)
HtmlTable
readingCellContentsWith(HtmlTable.CellReaderStrategy cellReaderStrategy)
static java.util.List<java.util.Map<java.lang.Object,java.lang.String>>
rowsFrom(org.openqa.selenium.WebElement table)
void
shouldHaveRowElementsWhere(BeanMatcher... matchers)
void
shouldNotHaveRowElementsWhere(BeanMatcher... matchers)
static HtmlTable.HtmlTableBuilder
withColumns(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
-