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); }
public void DoAdminSignout() { documentLibraryPage.MoveToUserActions(); wait.WaitForElementToBeClickable(documentLibraryPage.adminSignOutLink); documentLibraryPage.ClickOnAdminSignout(); wait.WaitforBrowserLoad(); wait.WaitForElementToDisplay(loginPage.userNameTxtBox); }
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')]")); }