//LogIn public static void LogIn(IWebDriver driver, string username, string password) { HomePage.SelectLeftMenuItem(driver, LocatorType.XPath, "//div[@id='zone-top']/div/div/div", LocatorType.Id, "login"); Thread.Sleep(2000); ControlAccessMethods.EnterText(driver, LocatorType.Id, "username", username); ControlAccessMethods.EnterText(driver, LocatorType.Id, "password", password); ControlAccessMethods.Click(driver, LocatorType.CssSelector, "button.button.login-button"); }
//Select Top Menu Item public static void SelectLeftMenuItem(IWebDriver driver, LocatorType menuLocatorType, string menulocator, LocatorType menuitemLocatorType, string menuitemLocator) { ControlAccessMethods.Click(driver, menuLocatorType, menulocator); ControlAccessMethods.Click(driver, menuitemLocatorType, menuitemLocator); }