Web测试

QTP WebTable对象常用方法

上一篇 / 下一篇  2012-12-14 15:02:57 / 个人分类:测试总结

1、rowcount
获取webtable的行数

2、columncount(row)
获取第row行webtable的列数

3、GetCellData(row,column)
获取对应行列单元格的值

4、childitem(row,column,micclass,index)
获取对应行列micclass对象,可对其进行操作
e.g. Browser("Location Management System-").Page("Location Management System-").Frame("main").WebTable("ID").ChildItem(row,5,"Link",0).click

5.GetRowWithCellText(text,column,row)
从第column列第row行开始查找,row++,返回第一次与text值相同的行数
e.g. Set  table=Browser("Location Management System-").Page("Location Management System-").Frame("main").WebTable("ID")
row=table.GetRowWithCellText("876600 ",1,1)

TAG: QTP qtp WebTable Webtable

 

评分:0

我来说两句

jing17

jing17

有梦想 有激情 ~@! 放飞无限青春 像鹰一样翱翔 ~#@

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 15114
  • 日志数: 19
  • 建立时间: 2012-05-19
  • 更新时间: 2013-08-18

RSS订阅

Open Toolbar