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

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

            loginButton = WaitForElement.Wait(driver, loginButtonLocator);
            return(new StartPage());
        }
예제 #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());
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }