TestStack / TestStack.Seleno

Seleno helps you write automated UI tests in the right way by implementing Page Objects and Page Components and by reading from and writing to web pages using strongly typed view models.
http://teststack.github.com/TestStack.Seleno/
MIT License
180 stars 60 forks source link

Can not initialize Seleno - System.TypeInitializationException #264

Open josenbobby opened 5 years ago

josenbobby commented 5 years ago

This is same issue thats mentioned in #231. I am new to Seleno so I might have misunderstood something,

I am trying to get Seleno to work. Following the course Automated ASP.NET MVC Testing: End to End on Pluralsight by Jason Roberts.

But for some reason I cant get Seleno to work. I created a solution with the ASP.Net MVC (.net 4.5.2). Works like it should.

I tried to make a little test but I always get the following error on initialising the BrowserHost.

System.TypeInitializationException : The type initializer for 'Tests.BrowserHost' threw an exception. ----> System.NullReferenceException : Object reference not set to an instance of an object.

josenbobby commented 5 years ago

Its exactly as listed in this ticket. Though i am not using NUnit https://github.com/TestStack/TestStack.Seleno/issues/231