private void EnterPassword(Entities.User user) { Thread.Sleep(1000); password.Get().Clear(); password.Get().SendKeys(user.Password); password.Get().Submit(); Thread.Sleep(10000); }
//public void GoToRoles() //{ // rolesSubMenu.Get().Click(); // WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20)); // wait.Until(drv => drv.Url.Contains(rolesURL)); //} //public void GoToGroups() //{ // ActivateSubMenus(pimsSupportMenu); // ActivateSubMenus(centerPointAdminSubMenu); // groupsSubMenu.Get().Click(); // WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20)); // wait.Until(drv => drv.Url.Contains(groupsURL)); //} public void GoToLogout() { logoutMenu.Get().Click(); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20)); wait.Until(drv => drv.Url.Contains(logoutURL)); }
private void ActivateSubMenus(WebElementProxy webElement) { //TODO: Try in multiple browsers //Try click first... //webElement.Get().Click(); //or this //HERE IS AN EXAMPLE OF USING A MOUSEOVER EVENT IN SELENIUM Actions action = new Actions(driver); action.MoveToElement(webElement.Get()).Click().Build().Perform(); }
private void EnterUserName(Entities.User user) { userName.Get().Clear(); userName.Get().SendKeys(user.UserName); }
public void EnterSearchField(string searchString) { searchField.Get().SendKeys(searchString); }