public void LogOut()
        {
            profileButton.Click();
            By          logOutButtonLocator = By.Id(LOG_OUT_BUTTON_ID_LOCATOR);
            IWebElement logOutButton        = WaitForElement.Wait(driver, logOutButtonLocator);

            logOutButton.Click();
        }
        public static StartPage Create(IWebDriver driverArg)
        {
            driver = driverArg;
            By loginButtonLocator = By.Id(LOGIN_BUTTON_LOCATOR_ID);

            loginButton = WaitForElement.Wait(driver, loginButtonLocator);
            return(new StartPage());
        }
Beispiel #3
0
        public static LoginPasswordPage Create(IWebDriver driverArg)
        {
            driver = driverArg;
            By passwordLocator = By.XPath(LOGIN_PASSWORD_LOCATOR);

            loginPasswordElement    = WaitForElement.Wait(driver, passwordLocator);
            loginPasswordNextButton = driver.FindElement(By.Id(LOGIN_BUTTON_LOCATOR_ID));
            return(new LoginPasswordPage());
        }
        public void DeleteDocument(String fileName)
        {
            IWebElement element = findFileByName(fileName);

            element.Click();

            By          deleteButtonLocator = By.XPath(DELETE_BUTTON_XPATH_LOCATOR);
            IWebElement deleteButtonElement = WaitForElement.Wait(driver, deleteButtonLocator);

            deleteButtonElement.Click();

            By          deleteMessageLocator = By.XPath(DELETE_MESSAGE_XPATH_LOCATOR);
            IWebElement deleteMessageElement = WaitForElement.Wait(driver, deleteMessageLocator);
        }
        public DrivePage OpenDrivePage()
        {
            while (popUpButton.GetAttribute("aria-expanded").Equals("false"))
            {
                popUpButton.Click();
            }

            By          driveButtonLocator = By.Id(DRIVE_BUTTON_ID_LOCATOR);
            IWebElement openDriverPage     = WaitForElement.Wait(driver, driveButtonLocator);

            openDriverPage.Click();
            DrivePage drivePage = DrivePage.Create(driver);

            return(drivePage);
        }
Beispiel #6
0
 public MainLoggedPage WaitAndFillNewDashboardTitle(String dashboardTitle)
 {
     WaitForElement.FindAndWaitForElement(Browser.Driver, NewDashboardTitleForTile, 5);
     NewDashboardTitleForTile.SendKeys(dashboardTitle);
     return(this);
 }
 public BoardPage ClickDeleteLink()
 {
     WaitForElement.FindAndWaitForElement(Browser.Driver, DeleteBoardLink, 5);
     DeleteBoardLink.Click();
     return(this);
 }