org.seleniuminspector.html
Class TableSectionInspector

java.lang.Object
  extended by org.seleniuminspector.ElementInspector
      extended by org.seleniuminspector.ElementByReferenceInspector
          extended by org.seleniuminspector.html.TableSectionInspector

public class TableSectionInspector
extends ElementByReferenceInspector


Constructor Summary
TableSectionInspector(TableInspector table, java.util.List<ElementInspector> rows)
           
TableSectionInspector(TableInspector table, java.lang.String sectionTagName)
           
 
Method Summary
 void assertColumnCellStyles(int colIndex, java.lang.String style)
          Checks the correctness of the specified style property declarations for all of the cells in the specified column.
 void assertColumnCellStyles(java.lang.String[] columnStyles)
          Checks the specified CSS property declarations for all cells on a per-column basis.
protected  TableRowInspector createRowInspector(int rowIndex)
           
 TableRowInspector row(int rowIndex)
           
 int rowCount()
           
 
Methods inherited from class org.seleniuminspector.ElementByReferenceInspector
getElementReferenceExpression, toString
 
Methods inherited from class org.seleniuminspector.ElementInspector
adaptColorString, adaptFontWeightString, asSeleniumLocator, assertAttribute, assertAttributeStartsWith, assertContainsText, assertElementExists, assertElementExists, assertExpressionEquals, assertExpressionEquals, assertExpressionEquals, assertExpressionEquals, assertExpressionStartsWith, assertHeight, assertHeight, assertNodeName, assertPosition, assertPosition, assertSize, assertSize, assertStyle, assertSubtext, assertText, assertVisible, assertWidth, assertWidth, attribute, calculateStyleProperty, childNodes, childNodesByName, className, click, clickAndWait, clickAndWait, doubleClick, dragAndDrop, elementExists, escapeStringForJS, escapeStringForJSAndQuote, evalBooleanExpression, evalExpression, evalIntExpression, evalSeleniumInspectorExpression, executeSeleniumCommand, fireEvent, fireEvent, firstChild, focus, getElementsByScript, getElementsByTagName, getSelenium, hasChildNodes, id, isCommentNode, isDocumentNode, isTextNode, isVisible, keyDown, keyDown, keyPress, keyPress, keyUp, keyUp, lastChild, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, nextSibling, nodeName, nodeValue, parentNode, position, previousSibling, rectangle, selectByLabel, selectOptions, setCursorPosition, size, sleep, subElement, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableSectionInspector

public TableSectionInspector(TableInspector table,
                             java.lang.String sectionTagName)

TableSectionInspector

public TableSectionInspector(TableInspector table,
                             java.util.List<ElementInspector> rows)
Method Detail

rowCount

public int rowCount()

row

public TableRowInspector row(int rowIndex)

createRowInspector

protected TableRowInspector createRowInspector(int rowIndex)

assertColumnCellStyles

public void assertColumnCellStyles(int colIndex,
                                   java.lang.String style)
Checks the correctness of the specified style property declarations for all of the cells in the specified column.

Parameters:
colIndex - column index
style - CSS property declarations that should be checked

assertColumnCellStyles

public void assertColumnCellStyles(java.lang.String[] columnStyles)
Checks the specified CSS property declarations for all cells on a per-column basis. Each column is checked for the styles specified in the appropriate entry of the array passed in the "columnStyles" parameter.

Parameters:
columnStyles - an array of style declarations for all columns. The size of this array should be equal to the number of columns in the table.


Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.