开发者

Selenium Grid, Capturing Screenshots

Capture screenshot using selenium command captureScreensh开发者_C百科ottoText or capture screenshot works fine if display/monitor is ON But if Monitor is OFF it captures blank/Black images

How to get Proper images when display is off


This happens when the session is locked out or when the machine goes to sleep mode. Workaround that we use is to make sure that the machine never goes into this state. You can find more details here on how to disable the screen lock - http://www.howtogeek.com/howto/windows-vista/disableenable-lock-workstation-functionality-windows-l/


If you are connecting to a remote computer, use a VNC server/viewer to open your Selenium Server so that the display doesn't get killed. If you are using Remote Desktop, the display will close whenever you quit.

Connecting via VNC should fix your issues

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜