Getting Black screen while capturing screen shot in IE 8

241 views
Skip to first unread message

rajesh singh

unread,
Apr 23, 2013, 12:50:16 PM4/23/13
to seleniu...@googlegroups.com
Hi all,

 I am using Python script with Webdriver to automate testcase. In my test script i have used driver.get_screenshot_as_file("path") to capture screenshot. The test runs for 8 hrs on windows 7 machine on IE 8 browser and captures screen shot in every one hour. It successfully captured screenshot up to 6th hour, but after that it captured screenshot with only  BLACK screen. I executed the same script in Firefox 10, i didn't get any BLACK screen as screenshot.

 If anybody has any idea on this(capturing Black Screen on IE8), please feel free to suggest.

Thanks,
Rajesh

Gustavo Godoy

unread,
Apr 23, 2013, 7:03:05 PM4/23/13
to seleniu...@googlegroups.com
Hi,

When you run in FF, the time elapsed is the same, on IE? Did you check if our windows go to hibernation after this 6hr? I asked about FF because the tests run more faster on it, so I think you can´t get blank screen...

I have this issue when my win machine goes sleep or when automatically locked, asking for password.

gustavo

David Lai

unread,
Apr 24, 2013, 3:37:08 AM4/24/13
to seleniu...@googlegroups.com
Are you trying to save it from a RemoteWebdriver?  for some reason I remember it being more reliable to pipe it as a base 64 encoded stream and decoded locally before saving it when dealing with Remote webdriver instances.

Here's my code for saving screenshots in Python.

rajesh singh

unread,
Apr 24, 2013, 2:31:15 PM4/24/13
to seleniu...@googlegroups.com
hi gustavo,

 In both case(FF and IE 8), the same test is made to run for 8 hrs and captures screen shot in every one hour intervals ,then test terminates. In FF 10, it successfully captured screenshot for 8 hrs, but in IE 8 in last two hrs i.e 7th and 8th hr it took BLACK screen as screenshot. I executed multiple time in IE 8 and got the same results.

regards,
Rajesh


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tLWV2NJGAFEJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages