QTP 中的 CaptureBitmap 功能不起作用

发布于 2024-12-05 09:56:15 字数 329 浏览 4 评论 0原文

我想做的就是截取网络表格的屏幕截图!

我以前已经这样做了一百万次,而且一百万次都完美地工作了。

代码行是:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若有似无的小暗淡 2024-12-12 09:56:15

我遇到了类似的问题:捕获的位图是快照时屏幕上可见的任何内容。例如,如果点击该脚本行时 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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文