net.thucydides.core.pages.components
Class HtmlTable

Package class diagram package HtmlTable
java.lang.Object
  extended by net.thucydides.core.pages.components.HtmlTable

public class HtmlTable
extends Object

Class designed to make it easier reading from and reasoning about data in HTML tables.


Constructor Summary
HtmlTable(org.openqa.selenium.WebElement tableElement)
           
 
Method Summary
 boolean 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> firstRowElements()
           
 List<String> getHeadings()
           
 List<org.openqa.selenium.WebElement> getRowElements()
           
 List<org.openqa.selenium.WebElement> getRowElementsFor(List<String> headings)
           
 List<org.openqa.selenium.WebElement> getRowElementsWhere(BeanMatcher... matchers)
           
 List<Map<Object,String>> getRows()
           
 List<org.openqa.selenium.WebElement> headingElements()
           
static HtmlTable inTable(org.openqa.selenium.WebElement table)
           
static List<Map<Object,String>> rowsFrom(org.openqa.selenium.WebElement table)
           
 void shouldHaveRowElementsWhere(BeanMatcher... matchers)
           
 void shouldNotHaveRowElementsWhere(BeanMatcher... matchers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTable

public HtmlTable(org.openqa.selenium.WebElement tableElement)
Method Detail

inTable

public static HtmlTable inTable(org.openqa.selenium.WebElement table)

getRows

public List<Map<Object,String>> getRows()

findFirstRowWhere

public org.openqa.selenium.WebElement findFirstRowWhere(BeanMatcher... matchers)

containsRowElementsWhere

public boolean containsRowElementsWhere(BeanMatcher... matchers)

shouldHaveRowElementsWhere

public void shouldHaveRowElementsWhere(BeanMatcher... matchers)

shouldNotHaveRowElementsWhere

public void shouldNotHaveRowElementsWhere(BeanMatcher... matchers)

getHeadings

public List<String> getHeadings()

headingElements

public List<org.openqa.selenium.WebElement> headingElements()

firstRowElements

public List<org.openqa.selenium.WebElement> firstRowElements()

getRowElementsFor

public List<org.openqa.selenium.WebElement> getRowElementsFor(List<String> headings)

getRowElements

public List<org.openqa.selenium.WebElement> getRowElements()

getRowElementsWhere

public List<org.openqa.selenium.WebElement> getRowElementsWhere(BeanMatcher... matchers)

rowsFrom

public static List<Map<Object,String>> rowsFrom(org.openqa.selenium.WebElement table)

filterRows

public static List<org.openqa.selenium.WebElement> filterRows(org.openqa.selenium.WebElement table,
                                                              BeanMatcher... matchers)

filterRows

public List<org.openqa.selenium.WebElement> filterRows(BeanMatcher... matchers)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.