static void Main(string[] args) { #region Main int choice; bool exit = false; do { PrintMenu(); choice = int.Parse(Console.ReadLine()); switch (choice) { case 0: { Console.WriteLine("Chose exit."); exit = true; break; } case 1: Console.WriteLine("Test logging in to humanity with correct info."); HumanityLoginTests.LoginToHumanity(); break; case 2: Console.WriteLine("Automatic test logging in to humanity with incorrect info."); HumanityLoginTests.AutomaticLoginToHumanity(); break; case 3: Console.WriteLine("Adding one new employee."); HumanityAddNewEmployeeTests.AddNewEmployee(); break; case 4: Console.WriteLine("Adding multiple new employees."); HumanityAddNewEmployeeTests.AutoAddMultipleEmployees(); break; case 5: Console.WriteLine("Edditing employee."); HumanityEditEmployeeTest.EditEmployee(); break; case 6: Console.WriteLine("Changing Settings."); HumanitySettingsTest.ChangingSettings(); break; case 7: Console.WriteLine("Signing out of Humanity."); HumanitySignOutTest.SigningOut(); break; } }while (!exit); #endregion }
public static void NavigateTo(IWebDriver wd) { HumanityLoginTests.LoginToHumanity(); }
public static void NavigateTo(IWebDriver wd) { HumanityLoginTests.LoginToHumanity(); HumanityMenu.ClickStaff(wd); HumanityStaff.ClickEmployee1(wd); }
public static void NavigateTo(IWebDriver wd) { HumanityLoginTests.LoginToHumanity(); HumanityMenu.ClickSettingsButton(wd); }
public static void NavigateTo(IWebDriver wd) { HumanityLoginTests.LoginToHumanity(); wd.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3); HumanityMenu.ClickStaff(wd); }