捕获最小化浏览器的屏幕截图
我正在考虑让我的程序打开Selenium WebDriver浏览器,进入特定页面并屏幕截图。但是,需要最小化窗口,以免过多干扰我们的用户。 我让WebDriver正常工作,我只需要屏幕截图,
甚至可以这样做?
我调查了这一点,但要了解他们在做什么,这还远远不足: 使用C#,WPF保存窗口的屏幕截图和DWM
任何帮助都将受到赞赏!
I'm looking into having my program open a Selenium WebDriver browser, go into a specific page and take a screenshot of it. However, the window needs to be minimized in order to not interfere with our users too much.
I have the WebDriver working fine, I just need to get a screenshot of it
Is this even possible to do so?
I looked into this, but it's far to advanced for me to understand what they're doing:
Saving a screenshot of a window using C#, WPF, and DWM
Any help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,可以使用
使用OpenQA.Selenium.Chrome
进行操作:Yes, it is possible to do using
using OpenQA.Selenium.Chrome
: