Class HtmlTable
java.lang.Object
net.thucydides.core.pages.components.HtmlTable
Class designed to make it easier reading from and reasoning about data in HTML tables.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsRowElementsWhere
(BeanMatcher... matchers) List<org.openqa.selenium.WebElement>
filterRows
(BeanMatcher... matchers) static List<org.openqa.selenium.WebElement>
filterRows
(org.openqa.selenium.WebElement table, BeanMatcher... matchers) org.openqa.selenium.WebElement
findFirstRowWhere
(BeanMatcher... matchers) List<org.openqa.selenium.WebElement>
List<org.openqa.selenium.WebElement>
List<org.openqa.selenium.WebElement>
getRowElementsFor
(List<String> headings) List<org.openqa.selenium.WebElement>
getRowElementsWhere
(BeanMatcher... matchers) getRows()
List<org.openqa.selenium.WebElement>
static HtmlTable
inTable
(org.openqa.selenium.WebElement table) readingCellContentsWith
(HtmlTable.CellReaderStrategy cellReaderStrategy) rowsFrom
(org.openqa.selenium.WebElement table) void
shouldHaveRowElementsWhere
(BeanMatcher... matchers) void
shouldNotHaveRowElementsWhere
(BeanMatcher... matchers) static HtmlTable.HtmlTableBuilder
withColumns
(String... headings)
-
Constructor Details
-
HtmlTable
public HtmlTable(org.openqa.selenium.WebElement tableElement) -
HtmlTable
-
-
Method Details
-
readingCellContentsWith
-
inTable
-
getRows
-
findFirstRowWhere
-
containsRowElementsWhere
-
shouldHaveRowElementsWhere
-
shouldNotHaveRowElementsWhere
-
withColumns
-
getHeadings
-
headingElements
-
firstRowElements
-
getRowElementsFor
-
getRowElements
-
getRowElementsWhere
-
rowsFrom
-
filterRows
public static List<org.openqa.selenium.WebElement> filterRows(org.openqa.selenium.WebElement table, BeanMatcher... matchers) -
filterRows
-