Beispiel #1
0
        public void Logout_To_HomePage_Test()
        {
            // Arrange
            string expected = homePage.GetPageURL();
            string actual;

            // Act
            drive.NavigatePage(startPage.GetPageURL());
            drive.FindElementByXPath(startPage.ButtonLogin()).Click();
            drive.FindElementByIdAndInputData(loginPage.InputEmail()).SendKeys(user.Email);
            drive.FindElementByIdAndInputData(loginPage.InputPassword()).SendKeys(user.Password);
            drive.FindElementByXPath(loginPage.ButtonLogin()).Click();
            drive.FindElementByXPath(accountPage.ButtonLogout()).Click();
            drive.FindElementByXPath(accountLogoutPage.ButtonContinueLogout()).Click();
            actual = drive.GetURL();

            // Assert
            Assert.AreEqual(expected, actual);
        }