Exemplo n.º 1
0
        public void LoginPasswordFieldDoesNotAcceptForbiddenSymbols()
        {
            TelerikUser user = new TelerikUser("TeamLichTestUser", @"<script>window.alert();</script>");
            this.loginPage.LoginUser(user);

            this.Browser.RefreshDomTree();

            this.loginPage.AssertIfErrorMessageForIllegalDataIsShown();
        }
Exemplo n.º 2
0
 public void RegisterTelerikUser(TelerikUser user, string passwordAgain)
 {
     this.UsernameTextBox.Text = user.UserName;
     this.PasswordTextBox.Text = user.Password;
     this.RepeatPasswordTextBox.Text = passwordAgain;
     this.FirstNameTextBox.Text = user.FirstName;
     this.LastNameTextBox.Text = user.LastName;
     this.EmailTextBox.Text = user.Email;
     this.TermAndConditionsCheckBox.Checked = true;
     this.SubmitButton.Click();
 }
Exemplo n.º 3
0
        public void RegisterTelerikUserWithUncheckedCheckbox(TelerikUser user)
        {
            string uniqueAddition = this.GetUniqueAddition();

            this.UsernameTextBox.Text = user.UserName + uniqueAddition;
            this.PasswordTextBox.Text = user.Password;
            this.RepeatPasswordTextBox.Text = user.Password;
            this.FirstNameTextBox.Text = user.FirstName;
            this.LastNameTextBox.Text = user.LastName;
            this.EmailTextBox.Text = uniqueAddition + user.Email;
            this.SubmitButton.Click();
        }
        public void RegistrationWithPasswordAgainEmpty()
        {
            TelerikUser user = new TelerikUser(
                TelerikUserData.UsernameValid,
                TelerikUserData.PasswordValid,
                TelerikUserData.FirstNameValid,
                TelerikUserData.LastNameValid,
                TelerikUserData.EmailValid);

            this.registrationPage.RegisterTelerikUser(user, string.Empty);

            this.registrationPage.AssertErrorMessageIsDisplayedWhenPasswordAgainFieldIsEmpty();
        }
        public void RegistrationWithPasswordAgainDifferent()
        {
            TelerikUser user = new TelerikUser(
                TelerikUserData.UsernameValid,
                TelerikUserData.PasswordValid,
                TelerikUserData.FirstNameValid,
                TelerikUserData.LastNameValid,
                TelerikUserData.EmailValid);

            this.registrationPage.RegisterTelerikUser(user, TelerikUserData.PasswordAgainValid);

            this.registrationPage.AssertErrorMessageIsDisplayedWhenEnterDifferentPasswordInPasswordAgainField();
        }
Exemplo n.º 6
0
 public void LoginUser(TelerikUser user)
 {
     this.UserTextBox.Text = user.UserName;
     this.PassTextBox.Text = user.Password;
     this.SubmitButton.Click();
 }
Exemplo n.º 7
0
        public void LoginWithEmptyFields()
        {
            TelerikUser user = new TelerikUser(string.Empty, string.Empty);
            this.loginPage.LoginUser(user);

            this.mainPage.AssertUserIsNotLogged();
        }
Exemplo n.º 8
0
        public void LoginUserWithNullFields()
        {
            TelerikUser user = new TelerikUser(null, null);
            this.loginPage.LoginUser(user);

            this.mainPage.AssertUserIsNotLogged();
        }