public void LoginToApplication(string testName) { var userData = Configs.GetTestData(testName); Configs.GetConfig(); UserName.EnterText(Configs.Username, "Username"); Password.EnterText(Configs.Password, "Password"); Submit.ClickOnIt("Submit Button"); }