This is a migrated thread and some comments may be shown as answers.

ActiveBrowser.Window.GetBitmap BLACK SCREEN

6 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Oleg
Top achievements
Rank 1
Oleg asked on 14 Jan 2011, 05:55 PM
Hello. I am using next function ActiveBrowser.Window.GetBitmap to make screenshot of my activeBrowser's rectangle. I faced with the black screen as output screenshot. I attached the VS 2008 solution. Please help me to resolve it.

P.S. Test steps:
1. Open browser
2. Load google page
3. Input "wikipedia" in the search field
4. Choose wikipedia from the search results to open wikipedia.org
5. MAKE SCREENSHOT which is placed to C:\

When I open screenshot.png I see only BLACK SCREEN

6 Answers, 1 is accepted

Sort by
0
Oleg
Top achievements
Rank 1
answered on 16 Jan 2011, 09:29 PM
Telerik's team, please help me to resolve the problem
0
Oleg
Top achievements
Rank 1
answered on 17 Jan 2011, 09:47 AM
When WebAii belongs to ArtOfTest they usually answer more quicly than Telerik's team. http://www.artoftest.com/community/forums/webaii-automation-framework/forum-general-questions/save-image-creating-a-black-rectangle-50-of-the-time.aspx#8062
0
Cody
Telerik team
answered on 18 Jan 2011, 04:37 AM
Hello Oleg,

I assume your screen is not locked or the screen saver is not running when you experience this problem? We have seen this on rare occasions and so far it's always been machine dependent  We don't have a solution to this problem except to use a different machine, or video card/driver.

Regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Oleg
Top achievements
Rank 1
answered on 19 Jan 2011, 02:06 PM
Thanks for reply. I'll try another machine
0
Oleg
Top achievements
Rank 1
answered on 26 Jan 2011, 11:57 AM
Seems that the problem was found. It is not in machine's hardware(video adapter). I changed video adapter which didn't solve the problem. This happens only on XP. If I run test on Windows 7 the problem is absent. Was tested on 3 XPs and 3 Win7 different machines.
0
Cody
Telerik team
answered on 26 Jan 2011, 05:05 PM
Hi Oleg,

That is very good information! Thank you very much for the update. I'm going to forward this info to our QA engineer to see if he can reproduce the same problem as you describe.

Best wishes,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Oleg
Top achievements
Rank 1
Answers by
Oleg
Top achievements
Rank 1
Cody
Telerik team
Share this question
or