Ejemplo n.º 1
0
        private void Button_Users_Click(object sender, RoutedEventArgs e)
        {
            _UsersMainPage?.ClosePage();
            _UsersMainPage = new UsersMainPage(this);

            WindowLogic.SetPage(_UsersMainPage);
        }
Ejemplo n.º 2
0
        public void TestIniti()
        {
            this.TestInitialize();
            this.homePage      = new APHomePage(this.Driver);
            this.loginPage     = new LoginPage(this.Driver);
            this.usersMainPage = new UsersMainPage(this.Driver);
            this.newUserPage   = new NewUserPage(this.Driver);

            var user = AccessExcelData.GetTestData <User>("TestName", "TestUser", "Users", BaseConstants.UsersXlsxFilename);

            this.loginPage.AnotherUserLogin(user, BaseConstants.TestAdminPanelUrl);
            Thread.Sleep(3000);
            this.homePage.Users.Click();
        }