有没有办法在 IE 上使用 selenium RC 捕获整个页面的屏幕截图?

发布于 2024-09-28 02:23:49 字数 156 浏览 1 评论 0原文

我使用 Java 编写脚本。我尝试过使用机器人类,但我仍然无法捕获整个页面上的内容(我获取屏幕尺寸并捕获图像,如果将额外值添加到高度/宽度,则不会捕获页面内容其中添加了黑屏)。简而言之,有没有办法为 IE 实现 captureEntirePageScreenShot() 。 预先感谢您的所有帮助。

I use Java for scripting. i have tried using the ROBOT class, but i am still not able to capture what is on the entire page(i get the screen dimensions and capture the image, if an extra value is added to the height/width the Page content is not captured where as a black screen is added). In short is there any way to implement captureEntirePageScreenShot() for IE.
Thanks in advance for all the help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

心房的律动 2024-10-05 02:23:49

您想捕获整个屏幕还是整个页面?如果页面需要向下滚动,我认为你无法在 Selenium 中捕获它。这在 Se2 中可能是可能的。

Do you want to capture the entire screen or entire page? If the page needs to scrolled down, I dont think you can capture that in Selenium. It may be possible in Se2.

杯别 2024-10-05 02:23:49

您是否考虑过使用snapsIE
我没有使用过它,但根据我所读到的内容,它可能会解决你的问题。

是否可以选择获取页面的 HTML 源代码?

有什么特殊原因导致您无法使用 Firefox?
我目前使用 Selenium RC,从 .Net 调用并使用 Firefox 捕获比浏览器视口更大的大屏幕。

Have you looked into using snapsIE?
I haven't used it but from what I have read, it may solve your problem.

Is getting the HTML source of the page an option?

Any particular reason you can't use Firefox?
I currently use Selenium RC, called from .Net and using Firefox to capture large screens, bigger than the browser view port.

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