//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"); }
//Enter Text in search textbox public static void Search(IWebDriver driver, string searchterm, LocatorType locatortype, string searchtextboxlocator) { ControlAccessMethods.EnterText(driver, locatortype, searchtextboxlocator, searchterm); }