Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6099823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:19:02+00:00 2026-05-23T13:19:02+00:00

We are using WatiN – 2.1.0 to take a screenshot when an integration test

  • 0

We are using WatiN – 2.1.0 to take a screenshot when an integration test fails. When running these tests locally on my dev VM all screenshot’s are recorded correctly (using IE8 or IE9).

However, when they are running on our integration server:

  • windows server 2008 VM
  • internet explorer 8
  • we are running the watin tests from team city via nunit-console

The screenshots recorded on test failure are all black. I have reviewed several posts that cover similar concepts however they were all referencing earlier version of Watin. Has anyone had similar issues with the latest version?

Screenshot on test failure code:

    [TearDown]
    public void TearDown()
    {

        if (TestContext.CurrentContext.Result.State == TestState.Failure ||
            TestContext.CurrentContext.Result.State == TestState.Error)
        {
            Browser.BringToFront();
            Browser.CaptureWebPageToFile(DateTime.Now.ToString("ddmmyyyyHHmmss") + GetType().Name + ".png");
        }
        Browser.Close();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:19:03+00:00Added an answer on May 23, 2026 at 1:19 pm

    Well we found our issue. We had previously logged into our integration server as the user the tests were running as to monitor the tests.

    If you connect a remote desktop to the test machine, make sure to reboot the machine when you are done, otherwise the desktop will remain locked and screen captures will not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just got started running UI tests against my ASP.NET MVC application using WatiN.
I'm using WatiN, NUnit and ReSharper to run my ASP.NET unit tests inside Visual
I am using WatiN (2.0.10.928) with C# and Visual Studio 2008 to test a
I am using Watin 2.0 to develop some automated UI tests. I cannot get
We're using Watin for acceptance tests and we find it gets mighty slow once
I am using Watin to do some automated testing and I am running IE
I'm using Specflow with NUnit and WatiN to do some acceptance testing, and all
I'm currently using WatiN to run some javascript unit tests however everything works fine
I'm currently using WebAii and WatiN to try and automate some tests of a
I'm using watiN to test an ssl site on a test box with an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.