现象: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=Browser(myBrowser).Page(myPage).ChildObjects(wElement)
ElementsCount=cElements.count()
For i=0 to ElementsCount-1
msgbox cElements(i).GetROProperty("innertext")
If cElements(i).GetROProperty("innertext") = elementName Then
myY = cElements(i).GetROProperty("y")
Exit for
End If
Next
分享到:
相关推荐
我装的是QTP10,之前还用的好好的,今天不知道怎么回事,我把QTP关了后再启动就看见 QTP10 R6025 Runtime Error,我上网查了相关文章也没能解决,看论坛上也有人遇到过,但是没有答案,各位XDJM,帮忙看看哈。...
QTP11补丁下载 – 修改Result一些问题 This hotfix provides the following fixes for the Run Results Viewer: 1. Reduces the amount of time it takes to open large run results. 2. Reduces the amount of time...
该补丁是QTP10的重要补丁,用以解决QTP关了后再启动就看见 QTP10 R6025 Runtime Error的问题
qtp补丁(qtp_00644),彻底解决qtp10在win7上卡死、蓝屏的问题
解决QTP在win7_64bit识别不了对象问题的补丁包
QTP集合问题,将一些常用问题解决内容共享
This patch enables you to run QuickTest tests remotely as part of a Functional test set from an ALM server using server side execution with the ALM 11 5 Integration Enablement Pack ">QuickTest ...
Microsoft Visual C++ Runtime Library Runtime Error! Program: D:\Program Files\HP\QuickTest Professional\bin\QTPro.exe R6025 -pure virtual function call 成功解决QTP10的以上问题!
qtp 1.安装QTP11 2.破解 破解后运行QTP提示“License Error”,点击install License,按步骤添加License,却提示“安装许可
This patch fixes a problem that sometimes caused QuickTest to return the “Unable to save test to QC” general error while saving tests to QC or ALM This patch also improves QuickTest performance ...
QTP 中的 log manager,类似于log4J。支持在你的QTP自动化框架内输出多种日志、结果。 如:错误日志,失败场景,测试结果,性能指标等等
QTP QTP
qtp资料qtp资料
安装好qtp9.2后打开qtp会报一个过期的错误,此文件介绍解决方法
QTP对象库简介
对qtp10无法识别IE8组件的补丁.都是object
19. QTP中根据日期计算年龄的解决办法 48 20. 测试报告知多少 48 21. 调用共享文件 49 22. 识别grid中的button 52 23. How to parameterize your link 52 24. QTP中的步骤生成器 54 25. QTP感想 56 26. QTP 参数化...
提供QTP下载地址
QTP安装和使用教程; QTP自动化测试; QTP安装过程中的注意事项;
qtp9.2插件qtp9.2插件qtp9.2插件qtp9.2插件qtp9.2插件qtp9.2插件qtp9.2插件qtp9.2插件