ActiveBrowser.Window.GetBitmap BLACK SCREEN

7 posts, 0 answers
  1. Oleg
    Oleg avatar
    7 posts
    Member since:
    Jan 2011

    Posted 14 Jan 2011 Link to this post

    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
  2. Oleg
    Oleg avatar
    7 posts
    Member since:
    Jan 2011

    Posted 16 Jan 2011 Link to this post

    Telerik's team, please help me to resolve the problem
  3. Oleg
    Oleg avatar
    7 posts
    Member since:
    Jan 2011

    Posted 17 Jan 2011 Link to this post

    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
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 17 Jan 2011 Link to this post

    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
  5. Oleg
    Oleg avatar
    7 posts
    Member since:
    Jan 2011

    Posted 19 Jan 2011 Link to this post

    Thanks for reply. I'll try another machine
  6. Oleg
    Oleg avatar
    7 posts
    Member since:
    Jan 2011

    Posted 26 Jan 2011 Link to this post

    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.
  7. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 26 Jan 2011 Link to this post

    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
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!