Home » Archive by category "Advanced CSharp"

CefSharp Offscreen [Why do I have so many instances of Chromium?]

I’ve been using the CefSharp.Offscreen library to drive the Chromium browser for a couple of months now.  While the code I’ve been working on has been working correctly, I could never figure out why so many instances of Chromium are left dangling in my task manager.  Oh, they’d all go away once I exited the application, but then it would take a very long time for my application to completely close because there were so many instances of Chromium hanging around.

This past week, I finally figured out how to keep the number of Chromium instances in line with the number of off-screen browser windows I was actually creating.

image Continue reading “CefSharp Offscreen [Why do I have so many instances of Chromium?]”

Running Selenium In Parallel With Any .NET Unit Testing Tool

Running Selenium in parallel from .NET seems to be a problem because, as of the time of this writing, I’ve yet to find a viable way of running selenium test on multiple browsers using Selenium Grid.  This doesn’t mean that there aren’t a few articles out there that have some kind of solution.  But they’ve never satisfied me as something that I could easily plug into my already created test.

While my preferred testing tools are NUnit and SpecFlow, the method I am about to propose should work with any existing test harness you might want to use.  The only prerequisite is that you are using Page Models to wrap your access to any particular web page.

This article assumes that you already:

  • know how to write Selenium tests
  • know how to use Selenium Grid
  • know how to use the Page Model pattern
  • know how to use your chosen test harness.

OK.  On to the main event. Continue reading “Running Selenium In Parallel With Any .NET Unit Testing Tool”

Why Get Certified?

Last week I mentioned that I’m working toward getting my MCSD certification.  Several weeks ago I received my ScrumMaster Certification.  This raises the question, “Why get certified at all?”

What follows is a list of reasons why I am perusing certification.

Continue reading “Why Get Certified?”

CSharp IDisposable Confusion

I’m planning to get my MCSD certification next and the first exam I plan to take is the 70-483 which will test my knowledge of CSharp.

To study, I got this free PDF: MCSD Certification Toolkit (Exam 70-483) (Which I wouldn’t recommend, but I haven’t found anything yet that I WOULD recommend, so this will have to do.)

In this book (Chapter 5) and other places on the web, it makes this statement:

Continue reading “CSharp IDisposable Confusion”