public class Table extends CauliElement
| 限定符和类型 | 字段和说明 |
|---|---|
private org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
Table(IBrowser browser) |
Table(IBrowser browser,
CauliElement cauliElement) |
Table(IBrowser browser,
String location) |
| 限定符和类型 | 方法和说明 |
|---|---|
IElement |
cell(int row,
int col) |
List<List<String>> |
getAllTableContext()
获得此table的所有行和所有列的值
|
String |
getTableContent(int row,
int col)
获得table的第row行,col列的值,这个方法只能返回td的值,对于标题th标签是不支持的,可以用getTableTitle的方法,
都是在同一个table中,按正常的行数数就可以。
|
List<String> |
getTableContentByColumn(int col)
获得此table第col列所有行的值,列号从0开始
|
private List<String> |
getTableContentByRow(int row)
获得table第row行所有的值,行号从0开始
|
String |
getTableTitle(int row,
int col)
这个方法返回的是table的标题内容
|
assertAttribute, assertEditable, assertIsExist, assertNotEditable, assertSelected, assertText, assertValue, child, child, children, clear, click, contextClick, doubleClick, dragAndDrop, dragAndDrop, find, find, focus, getAttribute, getBrowser, getCssValue, getElement, getId, getLocate, getLocation, getSize, getTagName, getText, input, isDisplay, isEnable, isExist, isSelected, jquery, keyDown, keyPress, keyPress, keyUp, leftDown, leftUp, mouseOver, release, scroll, setElement, setId, setLocate, submitpublic Table(IBrowser browser)
public Table(IBrowser browser, CauliElement cauliElement)
public String getTableContent(int row, int col)
row - 行号col - 列号public IElement cell(int row, int col)
public String getTableTitle(int row, int col)
row - 行号col - 列号public List<String> getTableContentByColumn(int col)
col - 列号public List<List<String>> getAllTableContext()
Copyright © 2014. All rights reserved.