typeinitializeexception

TypeInitializationException when doing action with an element in c#, Selenium

一笑奈何 提交于 2019-12-25 07:39:11
问题 I just want to click a button, or edit an input's text, but I can't do it with this method. I'm storing the elements in a public static class, and I call them from an another public static class. If I don't use this classes, i don't get exception. public static class SiteA { static uidriver = Program.uidriver; public static class Functionality { public static void SomeTest() { //... Inputs.Buttons.Authorize.Click(); //Here I get the exception //Working code: uidriver.FindElement(By.Id("some

The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception

大兔子大兔子 提交于 2019-12-10 13:44:20
问题 I'm following the directions on Quartz.Net's tutorial pretty closely, but I'm getting a start error when trying to debug my project. The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception. I couldn't really find any help online. Is this a configuration problem? Anybody know where I can get a straightforward list of what needs to be configured? (I'm using Quartz.Net 2.0) INNER EXCEPTION: {"Failed obtaining configuration for Common.Logging from configuration section