ITeye博客

QTP

共 2 篇文章

解决 QTP General Run Error for webElement GetROProperty

现象:QTP 中 遍历对象为 welement对象是 会出现 General Run error 原因:WebElement catches all sorts of things and some may cause the General run error (still a bug with the tool). 解决方案: Set wElement=Description.Create() wElement("micclass").Value="WebElement" wElement("html tag").Value="DIV" '根据实际情况添加 Set cElements=B…

2012-12-25 10:34 · QTP

WebTable下自动Click Link

只写个函数 相信会vbs代码的人都能看懂 Function JreportLinkClick(BrowserName,PageName,FrameName,WebTableName,LinkName) Dim oDesc,LinkNumber Set oDesc = Description.Create() oDesc("micclass").Value = "Link" Set Lists = Browser(BrowserName).Page(PageName).Frame(FrameName).WebTable(WebTableName).ChildObjects(oDesc) Lin…

2011-11-17 21:35 · QTP