TypeInitializationException when doing action with an element in c#, Selenium
问题 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