Watin CaptureWebPageToFile () creates a black image

I have a console application running on an application server that uses Watin to automate IE navigation. When I use the MakeNewIeInstanceVisible = false property, all created images are black. If I make IE visible, it creates images in order, but we must disable IE so that it does not pop up when people use the server.

Does anyone know a way to capture screenshots without a visible IE window?

+4
source share
1 answer

Is this running on an instance of Server 2008 or Windows 7? Can you run the executable as administrator? When I run my program that executes .CaptureWebPageToFile () with lower resolutions, the image turns black.

0
source

Source: https://habr.com/ru/post/1340335/


All Articles