Exemplo n.º 1
0
        public MainWindow()
        {
            Notifier = new Notifier(cfg =>
            {
                cfg.PositionProvider = new ControlPositionProvider(
                    parentWindow: this,
                    trackingElement: MainGrid,
                    corner: Corner.BottomRight,
                    offsetX: 5,
                    offsetY: 5);

                cfg.LifetimeSupervisor = new TimeAndCountBasedLifetimeSupervisor(
                    notificationLifetime: TimeSpan.FromSeconds(1.5),
                    maximumNotificationCount: MaximumNotificationCount.FromCount(5));

                cfg.DisplayOptions.TopMost = false;

                cfg.DisplayOptions.Width = 230;

                cfg.Dispatcher = Application.Current.Dispatcher;
            });

            StartPage          = new StartPage();
            ServiceListPage    = new ServiceListPage(Notifier);
            ChangePasswordPage = new ChangePasswordPage(Notifier);

            InitializeComponent();
            ApplicationFrame.Content = StartPage;

            _timer          = new Timer(1000);
            _timer.Elapsed += _timer_Elapsed;
            _timer.Start();
        }
Exemplo n.º 2
0
        public void TC08_UserCannotChangePassword()
        {
            Console.WriteLine("TC08 - User can't change password when 'New Password' and 'Confirm Password' are different.");

            //1. Navigate to QA Railway Website
            HomePage homePage = new HomePage();

            homePage.Open();

            //2. Login with valid account
            LoginPage loginPage = homePage.GoToLoginPage();

            homePage = loginPage.Login(Constant.ValidUsername, Constant.ValidPassword);

            //3. Click on "Change Password" tab
            ChangePasswordPage changePasswordPage = homePage.GoToChangePasswordPage();

            //4. Enter valid information into "Current Password" textbox but enter "a123:"/{}!@$\" into "New Password" textbox and "b456:"/{}!@$\" into "Confirm Password" textbox.
            //5. Click on "Change Password" button
            //VP. Error message "Password change failed. Please correct the errors and try again." appears.
            string newPassword     = "******"/{}!@$\\";
            string confirmPassword = "******"/{}!@$\\";
            string actualMsg       = changePasswordPage.ChangePassword(Constant.ValidPassword, newPassword, confirmPassword).GetSuccessMessage();
            string expectedMsg     = "Password change failed. Please correct the errors and try again.";

            Assert.AreEqual(expectedMsg, actualMsg);
        }
Exemplo n.º 3
0
        public void TC07_UserChangePassword()
        {
            Console.WriteLine("TC07 - User can change password");

            //1. Navigate to QA Railway Website
            HomePage homePage = new HomePage();

            homePage.Open();

            //2. Login with valid account
            LoginPage loginPage = homePage.GoToLoginPage();

            homePage = loginPage.Login(Constant.ValidUsername, Constant.ValidPassword);

            //3. Click on "Change Password" tab
            ChangePasswordPage changePasswordPage = homePage.GoToChangePasswordPage();

            //4. Enter valid value into all fields.
            //5. Click on "Change Password" button
            //VP. Message "Your password has been updated" appears.
            string newPassword = "******";
            string actualMsg   = changePasswordPage.ChangePassword(Constant.ValidPassword, newPassword, newPassword).GetSuccessMessage();
            string expectedMsg = "Your password has been updated!";

            Assert.AreEqual(expectedMsg, actualMsg);

            //Post-condition: Change password to the old one
            changePasswordPage.ChangePassword(newPassword, Constant.ValidPassword, Constant.ValidPassword);
        }
Exemplo n.º 4
0
        public void ChangePassword()
        {
            LoginPage loginPage = new LoginPage(this.Driver);

            loginPage.FillUserName(ConfigurationManager.AppSettings["USERNAME"]);
            loginPage.FillPassword(ConfigurationManager.AppSettings["PASSWORD"]);

            DashBoardPage dashBoardPage = loginPage.Submit();

            Assert.IsTrue(dashBoardPage.IsLogOutDisplayed(), "Logout link not displayed");
            Assert.IsTrue(dashBoardPage.IsChangePasswordDisplayed(), "Change password link not displayed");

            AuthUserPage authUserPage = dashBoardPage.UsersLinkClick();

            Assert.IsTrue(authUserPage.IsTitleDisplayed(), "NO se mostro el titulo");
            Assert.IsTrue(authUserPage.IsUserLinkDisplayed(ConfigurationManager.AppSettings["NEW_USER"]), "NO se mostro el link del usuario");

            ChangeUserPage changeUserPage = authUserPage.UserLinkClick(ConfigurationManager.AppSettings["NEW_USER"]);

            Assert.IsTrue(changeUserPage.IsChangePasswordLinkDisplayed(), "No se mostro el link para cambiar la clave");

            ChangePasswordPage changePasswordPage = changeUserPage.ChangePasswordClick();

            Assert.IsTrue(changePasswordPage.IsPassword1Displayed(), "No se mostro el campo Password1");
            Assert.IsTrue(changePasswordPage.IsPassword2Displayed(), "No se mostro el campo Password2");

            changePasswordPage.FillPassword1(ConfigurationManager.AppSettings["CHANGE_PASSWORD"]);
            changePasswordPage.FillPassword2(ConfigurationManager.AppSettings["CHANGE_PASSWORD"]);
            changeUserPage = changePasswordPage.Submit();

            Assert.IsTrue(changeUserPage.IsTitleDisplayed(), "No se mostro el titulo");
        }
Exemplo n.º 5
0
        public void successfulChangeAndThenReturningTheOriginalPassword()
        {
            changePasswordPage.changePassword("Admin1*", "Admin1!", "Admin1!");
            managePage = new ManagePage(driver);
            string message = managePage.getSuccessMessage();

            Assert.AreEqual("Your password has been changed.", message);

            managePage.clickOnLogOutBtn();
            string url = "http://*****:*****@yahoo.com", "Admin1*");
            loginPage.waitForError();
            string loginError = loginPage.getError();

            Assert.AreEqual("Invalid login attempt.", loginError);

            loginPage.login("*****@*****.**", "Admin1!");
            wait.Until(wt => wt.FindElement(By.LinkText("*****@*****.**")));
            driver.FindElement(By.LinkText("*****@*****.**")).Click();
            managePage = new ManagePage(driver);
            managePage.goToChangePasswordPage();
            changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.changePassword("Admin1!", "Admin1*", "Admin1*");
            managePage = new ManagePage(driver);
            message    = managePage.getSuccessMessage();
            Assert.AreEqual("Your password has been changed.", message);
        }
Exemplo n.º 6
0
        public static void ChangePassword(LoginPage loginPage, String userName, String password, String newUser, String changePassword)
        {
            DashBoardPage dashBoardPage = LoginCommons.Login(loginPage, userName, password);

            Assert.IsTrue(dashBoardPage.IsUsersLinkDisplayed(), "NO se mostro el link de Users");

            AuthUserPage authUserPage = dashBoardPage.UsersLinkClick();

            Assert.IsTrue(authUserPage.IsTitleDisplayed(), "NO se mostro el titulo");
            Assert.IsTrue(authUserPage.IsUserLinkDisplayed(newUser), "NO se mostro el link del usuario");

            ChangeUserPage changeUserPage = authUserPage.UserLinkClick(newUser);

            Assert.IsTrue(changeUserPage.IsChangePasswordLinkDisplayed(), "No se mostro el link para cambiar la clave");

            ChangePasswordPage changePasswordPage = changeUserPage.ChangePasswordClick();

            Assert.IsTrue(changePasswordPage.IsPassword1Displayed(), "No se mostro el campo Password1");
            Assert.IsTrue(changePasswordPage.IsPassword2Displayed(), "No se mostro el campo Password2");

            changePasswordPage.FillPassword1(changePassword);
            changePasswordPage.FillPassword2(changePassword);
            changeUserPage = changePasswordPage.Submit();

            Assert.IsTrue(changeUserPage.IsTitleDisplayed(), "No se mostro el titulo");
            LoginCommons.Logout(changeUserPage);
        }
 public void InitiatePages()
 {
     changePasswordPage = new ChangePasswordPage(driver);
     itemInfoPage       = new ItemInfoPage(driver);
     landingPage        = new LandingPage(driver);
     tacticalBootsPage  = new TacticalBootsPage(driver);
     wishListPage       = new WishListPage(driver);
 }
Exemplo n.º 8
0
        public void SuccessfullPasswordChange()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.LogIn();
            changePasswordPage.SuccessfullPasswordChange();
            changePasswordPage.AssertChangePasswordIsSuccessfull();
        }
Exemplo n.º 9
0
        public void EnterMissmatchingNewPasswordChange()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.LogIn();
            changePasswordPage.EnterMissmatchingNewPassword();
            changePasswordPage.AssertEnteredPasswordsAreMissmatching();
        }
Exemplo n.º 10
0
        public void EnterEmptyConfirmNewPasswordChange()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.LogIn();
            changePasswordPage.EnterEmptyConfirmPassword();
            changePasswordPage.AssertConfirmPasswordIsEntered();
        }
Exemplo n.º 11
0
        public void EnterEmptyNewPasswordChange()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.LogIn();
            changePasswordPage.EnterIncorrectCurrentPasswordChange();
            changePasswordPage.AssertCurrentPasswordIsIncorrect();
        }
Exemplo n.º 12
0
        public void CheckIfChangeYourPasswordButtonIsWorkingManagePage()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.LogIn();
            changePasswordPage.ClickChangePasswordButton();
            changePasswordPage.AssertButtonIsWorking1();
            changePasswordPage.AssertButtonIsWorking2();
        }
Exemplo n.º 13
0
        public MyAccountPage FillingNewPasswords(string password, string passwordConfirm)
        {
            ChangePasswordPage items = new ChangePasswordPage();

            items.CleraClickInputNewPassword(password);
            items.CleraClickInputNewPasswordConfirm(passwordConfirm);
            items.ClickChangeButton();
            return(new MyAccountPage());
        }
        public void WhenISubmitTheFormToChangeMyPasswordUsingTheFollowingDetails(Credential credentials)
        {
            ChangePasswordPage.GoTo();

            ChangePasswordPage.ChangeOriginalPassword(credentials.OriginalPassword)
            .WithPassword(credentials.Newpassword)
            .ConfirmPassword(credentials.ConfirmPassword)
            .Change();
        }
Exemplo n.º 15
0
        public ChangePasswordPage GotoChangePasswordPage()
        {
            ClickMenu();
            Click("changePassword");
            var changePasswordPage = new ChangePasswordPage(Driver, BaseUri);

            PageFactory.InitElements(Driver, changePasswordPage);
            return(changePasswordPage);
        }
Exemplo n.º 16
0
        public void TryToChangePassword_NotMatchingPassword_ShouldNotUpdate()
        {
            var homepage       = LogIntoApp();
            var changePassword = new ChangePasswordPage(_driver, _url);

            changePassword.GoToPage();
            changePassword.ChangePassword(LogonUser.Password, "aaa", "bbb");
            var result = changePassword.ErrorValidationResponse();

            result.Should().Contain("The new password and confirmation password do not match.");
        }
        public AccountPage() : base(Resource.Account)
        {
            Items.Add(new SettingsItem
            {
                Header          = Resource.AutoLogin,
                Value           = Storage.AutoLogin ? Resource.Enabled : Resource.Disabled,
                ValueVisible    = true,
                SwitcherVisible = true,
                SwitcherToggled = Storage.AutoLogin,
                Action          = (item) =>
                {
                    if (Storage.AutoLogin)
                    {
                        Storage.AutoLogin    = false;
                        item.Value           = Resource.Disabled;
                        item.SwitcherToggled = false;
                    }
                    else
                    {
                        Storage.AutoLogin    = true;
                        item.Value           = Resource.Enabled;
                        item.SwitcherToggled = true;
                    }
                }
            });

            Items.Add(new SettingsItem
            {
                Header = Resource.ChangePassword,
                Action = (item) =>
                {
                    var page = new ChangePasswordPage
                    {
                        Title = Resource.ChangePassword
                    };
                    Navigation.PushAsync(page);
                }
            });

            Items.Add(new SettingsItem
            {
                Header = Resource.Log_out,
                Action = (item) =>
                {
                    Storage.Email    = null;
                    Storage.Password = null;
                    Storage.Token    = null;
                    DataBase.Manager.Logout();
                    Application.Current.MainPage = new LoginRegisterPage();
                }
            });
        }
Exemplo n.º 18
0
        public void testInit()
        {
            string url = "http://*****:*****@yahoo.com", "Admin1*");
            wait.Until(wt => wt.FindElement(By.LinkText("*****@*****.**")));
            driver.FindElement(By.LinkText("*****@*****.**")).Click(); //Go to Manage/Index
            managePage = new ManagePage(driver);
            managePage.goToChangePasswordPage();                        //Go to Manage/ChangePassword
            changePasswordPage = new ChangePasswordPage(driver);
        }
Exemplo n.º 19
0
 public void SetUp()
 {
     driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
     driver.Manage().Window.Maximize();
     wait     = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
     basePage = new BasePage(driver);
     driver.Navigate().GoToUrl(basePage.BaseUrl);
     homePage           = new HomePage(driver);
     loginPage          = new LoginPage(driver);
     regPage            = new RegistrationPage(driver);
     articleDetailsPage = new ArticleDetailsPage(driver);
     createArticlePage  = new CreateArticlePage(driver);
     deleteArticlePage  = new DeleteArticlePage(driver);
     editArticlePage    = new EditArticlePage(driver);
     changePasswordPage = new ChangePasswordPage(driver);
     managePage         = new ManagePage(driver);
 }
Exemplo n.º 20
0
        public void CheckThePasswordIsChanged()
        {
            var email            = "Katy" + DateTime.Now.Ticks + "@abv.bg";
            var registrationPage = new RegistrationPage(this.driver);
            var registrationUser = new RegisterUser(email, "Katy Perry", "0123456789", "0123456789");

            registrationPage.NavigateTo();

            registrationPage.FillRegistrationForm(registrationUser);

            var changePasswordPage = new ChangePasswordPage(this.driver);
            var newPassword        = new Password("0123456789", "9876543210", "9876543210");

            changePasswordPage.ChangePassword(newPassword);

            changePasswordPage.AssertPasswordIsChange("Your password has been changed.");
        }
        public void PasswordChange()
        {
            //Starting Extent report
            ReportHelpers.test = ReportHelpers.extent.StartTest("Password Change");

            //Created object to interact with HomePage and SignInPage classes and their methods
            HomePage   HomePageObj   = new HomePage();
            SignInPage SignInPageObj = new SignInPage();

            //Called objects to run methods of these classes
            HomePageObj.Open();
            HomePageObj.OpenLoginForm();
            SignInPageObj.LogInSteps();

            //Created object to interact with ChangePasswordPage class and its methods
            ChangePasswordPage ChangePasswordPageObj = new ChangePasswordPage();

            //Called object to run ChangePassword method
            ChangePasswordPageObj.ChangePassword();
            ChangePasswordPageObj.PasswordChangeValidation();
        }
Exemplo n.º 22
0
        public void ThenThePasswordShouldChangeSuccessfullyByReturningToHomePage()
        {
            bool result = ChangePasswordPage.ValidateChangePassword();

            Assert.IsTrue(result);
        }
Exemplo n.º 23
0
        public void WhenIProvideTheValueForFieldsAnd(string OldPassword, string NewPassword, string ConfirmPassword)
        {
            ChangePasswordPage changePassword = new ChangePasswordPage();

            changePassword.ChangePassword(OldPassword, NewPassword, ConfirmPassword);
        }
Exemplo n.º 24
0
 /*
 private static MeasureEditPage _measureEditPage;
 public static MeasureEditPage MeasureEditPage
 {
     get
     {
         if (null == _measureEditPage)
             _measureEditPage = new MeasureEditPage();
         return _measureEditPage;
     }
 }
 */
 //
 public static void Clear()
 {
     _loginPage          = null;
     _mainPage           = null;
     _measureListPage    = null;
     _changePasswordPage = null;
 }
 public void ThenTheUserIsRedirectedToTheChangePasswordPage()
 {
     user.ShouldSee(ChangePasswordPage.IsDisplayed());
 }
Exemplo n.º 26
0
        public void ACreateTestUserTest()
        {
            var changePasswordPage = new ChangePasswordPage(driver);

            changePasswordPage.Register();
        }
Exemplo n.º 27
0
 public ChangePasswordPageSteps(ITestContext context,
                                ChangePasswordPage changePasswordPageModel)
     : base(context)
 {
     _changePasswordPageModel = changePasswordPageModel;
 }
Exemplo n.º 28
0
 public void GivenINavigateToPage(string pageTextFromMenu)
 {
     changePasswordPage = new ProfilePage(_driver).HeaderBar.GoToAccountMenuItem(pageTextFromMenu)
                          as ChangePasswordPage;
 }
Exemplo n.º 29
0
        public void GivenINavigateToThePage(string pageName)
        {
            var webDriver = FeatureContext.Current.GetWebDriver();
            var uri       = FeatureContext.Current.GetBaseUri();

            switch (pageName.ToLower())
            {
            case "account log":
                var accountLogPage = new AccountLogPage(webDriver, uri);
                Assert.IsTrue(accountLogPage.IsCurrentPage,
                              $"Page {accountLogPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(accountLogPage);
                break;

            case "change email address":
                var changeEmailAddressPage = new ChangeEmailAddressPage(webDriver, uri);
                Assert.IsTrue(changeEmailAddressPage.IsCurrentPage,
                              $"Page {changeEmailAddressPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changeEmailAddressPage);
                break;

            case "change email address pending":
                var changeEmailAddressPendingPage = new ChangeEmailAddressPendingPage(webDriver, uri);
                Assert.IsTrue(changeEmailAddressPendingPage.IsCurrentPage,
                              $"Page {changeEmailAddressPendingPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changeEmailAddressPendingPage);
                break;

            case "change email address success":
                var changeEmailAddressSuccessPage = new ChangeEmailAddressSuccessPage(webDriver, uri);
                Assert.IsTrue(changeEmailAddressSuccessPage.IsCurrentPage,
                              $"Page {changeEmailAddressSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changeEmailAddressSuccessPage);
                break;

            case "change password":
                var changePasswordPage = new ChangePasswordPage(webDriver, uri);
                Assert.IsTrue(changePasswordPage.IsCurrentPage,
                              $"Page {changePasswordPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changePasswordPage);
                break;

            case "change password success":
                var changePasswordSuccessPage = new ChangePasswordSuccessPage(webDriver, uri);
                Assert.IsTrue(changePasswordSuccessPage.IsCurrentPage,
                              $"Page {changePasswordSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changePasswordSuccessPage);
                break;

            case "change security information":
                var changeSecurityInformationPage = new ChangeSecurityInformationPage(webDriver, uri);
                Assert.IsTrue(changeSecurityInformationPage.IsCurrentPage,
                              $"Page {changeSecurityInformationPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changeSecurityInformationPage);
                break;

            case "change security information success":
                var changeSecurityInformationSuccessPage = new ChangeSecurityInformationSuccessPage(webDriver, uri);
                Assert.IsTrue(changeSecurityInformationSuccessPage.IsCurrentPage,
                              $"Page {changeSecurityInformationSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(changeSecurityInformationSuccessPage);
                break;

            case "delete user":
                var deleteUserPage = new DeleteUserPage(webDriver, uri);
                Assert.IsTrue(deleteUserPage.IsCurrentPage,
                              $"Page {deleteUserPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(deleteUserPage);
                break;

            case "home":
                var homePage = new HomePage(webDriver, uri);
                Assert.IsTrue(homePage.IsCurrentPage,
                              $"Page {homePage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(homePage);
                break;

            case "landing":
                var landingPage = new LandingPage(webDriver, uri);
                Assert.IsTrue(landingPage.IsCurrentPage,
                              $"Page {landingPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(landingPage);
                break;

            case "log":
                var logPage = new LogPage(webDriver, uri);
                Assert.IsTrue(logPage.IsCurrentPage,
                              $"Page {logPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(logPage);
                break;

            case "login":
                var loginPage = new LoginPage(webDriver, uri);
                Assert.IsTrue(loginPage.IsCurrentPage,
                              $"Page {loginPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(loginPage);
                break;

            case "make admin":
                var makeAdminPage = new MakeAdminPage(webDriver, uri);
                Assert.IsTrue(makeAdminPage.IsCurrentPage,
                              $"Page {makeAdminPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(makeAdminPage);
                break;

            case "manage users":
                var userIndexPage = new UserIndexPage(webDriver, uri);
                Assert.IsTrue(userIndexPage.IsCurrentPage,
                              $"Page {userIndexPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(userIndexPage);
                break;

            case "recover":
                var recoverPage = new RecoverPage(webDriver, uri);
                Assert.IsTrue(recoverPage.IsCurrentPage,
                              $"Page {recoverPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(recoverPage);
                break;

            case "recover password":
                var recoverPasswordPage = new RecoverPasswordPage(webDriver, uri);
                Assert.IsTrue(recoverPasswordPage.IsCurrentPage,
                              $"Page {recoverPasswordPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(recoverPasswordPage);
                break;

            case "recover password success":
                var recoverPasswordSuccessPage = new RecoverPasswordSuccessPage(webDriver, uri);
                Assert.IsTrue(recoverPasswordSuccessPage.IsCurrentPage,
                              $"Page {recoverPasswordSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(recoverPasswordSuccessPage);
                break;

            case "recover success":
                var recoverSuccessPage = new RecoverSuccessPage(webDriver, uri);
                Assert.IsTrue(recoverSuccessPage.IsCurrentPage,
                              $"Page {recoverSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(recoverSuccessPage);
                break;

            case "register":
                var registerPage = new RegisterPage(webDriver, uri);
                Assert.IsTrue(registerPage.IsCurrentPage,
                              $"Page {registerPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(registerPage);
                break;

            case "register success":
                var registerSuccessPage = new RegisterSuccessPage(webDriver, uri);
                Assert.IsTrue(registerSuccessPage.IsCurrentPage,
                              $"Page {registerSuccessPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(registerSuccessPage);
                break;

            case "remove admin":
                var removeAdminPage = new RemoveAdminPage(webDriver, uri);
                Assert.IsTrue(removeAdminPage.IsCurrentPage,
                              $"Page {removeAdminPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(removeAdminPage);
                break;

            case "reset password":
                var resetPasswordPage = new ResetPasswordPage(webDriver, uri);
                Assert.IsTrue(resetPasswordPage.IsCurrentPage,
                              $"Page {resetPasswordPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(resetPasswordPage);
                break;

            case "user edit":
                var userEditPage = new UserEditPage(webDriver, uri);
                Assert.IsTrue(userEditPage.IsCurrentPage,
                              $"Page {userEditPage.GetType().Name} is not the current expected page");
                ScenarioContext.Current.Set(userEditPage);
                break;

            default:
                throw new NotImplementedException(pageName);
            }
        }
 public ChangePasswordSD()
 {
     ChangePasswordPageObj = new ChangePasswordPage();
 }
Exemplo n.º 31
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var chnPassPage = new ChangePasswordPage();

            ShowToolsGrid(chnPassPage, "Сменить пароль");
        }