public void Init()
        {
            var separateRegOfTestUserDriver = new ChromeDriver();
            var random   = new System.Random(100);
            var testUser = new User
            {
                FullName        = "For deletition",
                Email           = string.Format("{0}@test.bg", System.Guid.NewGuid().ToString().Substring(0, 5)),
                Password        = "******",
                ConfirmPassword = "******",
                IsAdmin         = false,
                IsUser          = true
            };
            var registerPage = new RegistrationPage(separateRegOfTestUserDriver);

            registerPage.NavigateTo();
            registerPage.FillRegistrationForm(testUser);
            separateRegOfTestUserDriver.Close();


            this.driver = new ChromeDriver();
            var logPage = new LoginPage(this.driver);

            User user = AccessExcelData.GetUserTestData("LoginAsAdmin");

            logPage.NavigateTo();
            logPage.FillLoginForm(user);

            var userList = new UserListPage(this.driver);

            userList.NavigateTo();
            _userGuid = userList.GetUserGuid();
        }
        public void UserListPageLoaded()
        {
            var userListPage = new UserListPage(this.driver);

            userListPage.NavigateTo();

            userListPage.AssertUserListPageIsLoaded("Users");
        }
        public void DeleteUsers()
        {
            var userListPage = new UserListPage(driver);

            userListPage.LogIn();
            userListPage.NavigateTo();
            userListPage.Delete();
        }
Пример #4
0
        public void WDeleteTestUser()
        {
            var userListPage = new UserListPage(driver);

            userListPage.LogIn();
            userListPage.NavigateTo();
            userListPage.DeleteTestUser();
        }