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