0

I am new to Selenium, and I use it (WebDriver 3.0) in my .NET unit test project, with IE. It would be great if I could output debugging information during the test case is running.

I found these questions on stackoverflow: How to write to Console.Out during execution of an MSTest test, Selenium Webdriver, C# output to console after opening driver and Selenium c# - Test Output not appears in the console window.

Most people said that System.Diagnostics.Debug.WriteLine() would do the job. However, it doesn't work in my case. I run my test cases in the following way:

  1. Right click on the ASP.NET project, select View -> View in Browser (Internet Explorer).
  2. Go to menu: Test -> Run -> All Tests

I am wondering if I should run my tests in another way?

Thanks so much.

BTW: Console.WriteLine() does not work either.

Community
  • 1
  • 1
VincentZHANG
  • 757
  • 1
  • 13
  • 31

0 Answers0