QTP 中的 CaptureBitmap 功能不起作用
我想做的就是截取网络表格的屏幕截图!
我以前已经这样做了一百万次,而且一百万次都完美地工作了。
代码行是:
Browser("name:=IE.*").Page("micclass:=Page")..WebTable("class:=DataTable").CaptureBitmap "c:\test.png",true
但是从过去几天开始,当我执行这行代码时。 在屏幕截图中,出现的不是网络表,而是白色补丁。
有人遇到过这个问题吗?
如果有人能为这个问题提出解决方案,那将非常有帮助。
谢谢
All that I want to do is to take screenshot of a webtable !!
I have done this a million times before and it has worked a million times perfectly.
Line of code is :
Browser("name:=IE.*").Page("micclass:=Page")..WebTable("class:=DataTable").CaptureBitmap "c:\test.png",true
But from the past few days , when i execute this line of code.
In the screenshot , instead of the webtable , a white patch appears.
Has anyone experienced this problem ?
If anyone can suggest a solution for this problem it would be very helpful.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了类似的问题:捕获的位图是快照时屏幕上可见的任何内容。例如,如果点击该脚本行时 QTP 窗口位于顶部,我将获得该窗口的图片,而不是浏览器窗口的图片。
如果情况并非如此,我会看看您的网页是否有多个 class =“DataTable”的表,尽管您可能会收到“脚本错误”。
I've had a similar problem: the bitmap captured is whatever is visible on the screen at the time of the snapshot. For example, if the QTP window is on top when that script line is hit, I'll get a picture of that, rather than of the browser window.
If that's not what's going on, I'd look at whether your web page has more than one table with class = "DataTable", though you'd probably get a "script error".