QTP UFT无法从表中找到行数 [英] QTP UFT Unable to find row count from table

查看:82
本文介绍了QTP UFT无法从表中找到行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到该表的行数,而当我监视时,对象存储库不显示任何Web表.您能帮我找到行数吗?它是在Angular Js framewrok中开发的.

I was not able to find row count of that table and when I spy, Object Respository doesn't show any webtable. Can you please help me on how to find the row count. It was developed in Angular Js framewrok.

附加对象副本:

DOM

推荐答案

从表(不是简单表的网格)中获取行数

to get the row count from the table (not simple table its a grid)

Set objDesc = Description.Create
objDesc("micclass").value = "WebElement"
objDesc("class Name").value = "ui-gri-row.*"

Set ObjRows = Browser("").Page("").WebElement("class:=ui-grid-canvas").ChildObjects(objDesc)

msgbox "Row Count : " & objRows.Count

这篇关于QTP UFT无法从表中找到行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆