示例#1
0
        public void SelectFavoritesRadioBtn()
        {
            wait.WaitForElementToBeClickable(favoritesRadioBtn);
            favoritesRadioBtn.Click();
            IWebElement allFavoritesLabel = driver.FindElement(By.XPath("//span[text()='All Favorite Documents']"));

            wait.WaitForElementToDisplay(allFavoritesLabel);
            Thread.Sleep(2000);
        }
示例#2
0
 public void DoAdminSignout()
 {
     documentLibraryPage.MoveToUserActions();
     wait.WaitForElementToBeClickable(documentLibraryPage.adminSignOutLink);
     documentLibraryPage.ClickOnAdminSignout();
     wait.WaitforBrowserLoad();
     wait.WaitForElementToDisplay(loginPage.userNameTxtBox);
 }
示例#3
0
 public void LoginToVenue(string username, string password)
 {
     userNameTxtBox.SendKeys(username);
     passwordTxtBox.Clear();
     passwordTxtBox.SendKeys(password);
     loginButton.Click();
     wait.WaitforBrowserLoad();
     wait.WaitForElementToDisplay(em.GetElement("//img[contains(@id,'_VenueDock_C_VenueLogo')]"));
 }