开发者

Selenium Grid, Capturing Screenshots

开发者 https://www.devze.com 2023-03-22 17:29 出处:网络
Capture screenshot using selenium command captureScreensh开发者_C百科ottoText or capture screenshot works fine if display/monitor is ON

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

精彩评论

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

关注公众号