예제 #1
0
 private void EnterPassword(Entities.User user)
 {
     Thread.Sleep(1000);
     password.Get().Clear();
     password.Get().SendKeys(user.Password);
     password.Get().Submit();
     Thread.Sleep(10000);
 }
예제 #2
0
        //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));
        }
예제 #3
0
        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();
        }
예제 #4
0
 private void EnterUserName(Entities.User user)
 {
     userName.Get().Clear();
     userName.Get().SendKeys(user.UserName);
 }
예제 #5
0
 public void EnterSearchField(string searchString)
 {
     searchField.Get().SendKeys(searchString);
 }