ActiveBrowser.Capture produces image with 'Black' Content Window

2 posts, 0 answers
  1. Eric
    Eric avatar
    4 posts
    Member since:
    Sep 2010

    Posted 16 May 2011 Link to this post


    I'm having an issue where the ActiveBrowser.Capture() feature is returning an Image where the Content window of the Browser is Black. (The Browser Navigation URL and Tool bars are visible)

    Here is the Code I'm using:
    var bitMap = ActiveBrowser.Capture();
    var fileName = TestContext.TestName + "_" + DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss_ffff");
    fileName = Path.ChangeExtension(Path.Combine(directory.FullName, fileName), ".jpeg");
    bitMap.Save(fileName, ImageFormat.Jpeg);

    I've attached what one of the Results looks like.

    These Scripts are running on Window 7 VM's.
  2. Stoich
    Stoich avatar
    1 posts

    Posted 19 May 2011 Link to this post

    Hi Eric,
       please go ahead and upgrade to the latest version of the Testing Framework (that's the now-rebranded WebAii Framework). You can download it from your Telerik account. We recently fixed a similar issue and the new version contains the fix. I'm not 100% you're hitting the same issue but it's very likely.

    Let me know whether the problem persists after upgrading.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top