Closed spooning closed 9 years ago
Originally submitted to Google Code by totziens on 13 Mar 2012
Found an old solution in 2010 using snapsie related to screen locked. Tried it but the abnormal behaviour in Win7 and IE9 freak me out. Anyway, my current case happened even when the screen is not locked.
Originally submitted to Google Code by @pekkaklarck on 4 May 2012
This seems to be a bug in Selenium itself and thus something we cannot do much in SeleniumLibrary. Since Selenium 1.0 is nowadays deprecated the bug is not likely to be fixed in it. You might want to test Selenium 2 and Selenium2Library instead.
Capture Screenshot keyword captures black screen for IE regardless whether the virtual machine and host of virtual machine are locked by screen saver or not. No suspicious error is noticed in selenium log. The test automation is triggered from Hudson.
Based on my observation, the problem did not occur when I tested the functionality of Capture Screenshot keyword. It started when I let the test automation run automatically overnight. That's when screen saver locking happened. However, when I reboot all the virtual machines as well at the host and re-execute the test, I still get black screen in the png files in all of the virtual machines.
Attempted to use Snapsie 0.2 in Windows 7 virtual machine with IE9 but encountered some abnormal errors that I forgot to capture before I reverted the snapshot. I suspect snapsie 0.2 is too old and no longer maintained to suit new version of browsers.
Robot IDE version: 0.39.1
Robot Framework version: 2.6.3
Selenium Library version: Installed with 2.8.1 but replace selenium-server.jar manually with selenium-server-standalone-2.20.0.jar (of course, it has been renamed to selenium-server.jar) to overcome IE browser closure issue.
Mabot version: 0.7
Operating system: Windows XP SP3 and Windows 7 SP1 (32 bits)
Browsers: IE7 (Windows XP virtual machine), IE8 (Windows XP virtual machine), IE9 (Windows 7 virtual machine)