Exemplo n.º 1
0
 //Check "Create" button is not present
 public static void AssertCreateButtonIsNotPresent(this RegistrationPage page)
 {
     Assert.AreEqual("Register", page.RegisterButton.Text);
 }
Exemplo n.º 2
0
 //Check if Register button is working and redirecting to Registration Page
 public static void AssertRegisterButtonIsWorking(this RegistrationPage page)
 {
     Assert.AreEqual("Register", page.RegistrationPageForm.Text);
 }
Exemplo n.º 3
0
 //Check if copyright is present
 public static void AssertCopyrightIsPresent(this RegistrationPage page)
 {
     Assert.AreEqual("© 2017 - SoftUni Blog", page.Copyright.Text);
 }
Exemplo n.º 4
0
 //Check if SoftUniBlog button is working and redirecting to Home Page
 public static void AssertSoftUniBlogButtonIsWorking(this RegistrationPage page)
 {
     Assert.AreEqual("Edit title", page.HomePage.Text);
 }
Exemplo n.º 5
0
 //Check if Login button is working and redirecting to Login Page
 public static void AssertLoginButtonIsWorking(this RegistrationPage page)
 {
     Assert.AreEqual("Log in", page.LoginPage.Text);
 }
Exemplo n.º 6
0
 //Check if confirm password is entered
 public static void AssertConfirmPasswordIsEntered(this RegistrationPage page)
 {
     Assert.AreEqual("The password and confirmation password do not match.", page.ConfirmPasswordEmpty.Text);
 }
Exemplo n.º 7
0
 //Check if confirm password match
 public static void AssertPasswordMatch(this RegistrationPage page)
 {
     Assert.AreEqual("The password and confirmation password do not match.", page.PasswordMismatch.Text);
 }
Exemplo n.º 8
0
 //Check if password is entered
 public static void AssertPasswordIsEntered(this RegistrationPage page)
 {
     Assert.AreEqual("The Password field is required.", page.PasswordEmpty.Text);
 }
Exemplo n.º 9
0
 //Check if full name is entered
 public static void AssertFullNameIsEntered(this RegistrationPage page)
 {
     Assert.AreEqual("The Full Name field is required.", page.FullNameEmpty.Text);
 }
Exemplo n.º 10
0
 //Check if correct email is entered
 public static void AssertIncorrectEmailIsEntered(this RegistrationPage page)
 {
     Assert.AreEqual("The Email field is not a valid e-mail address.", page.IncorrectEmail.Text);
 }
Exemplo n.º 11
0
 //Check if email is entered
 public static void AssertEmailIsEntered(this RegistrationPage page)
 {
     Assert.AreEqual("The Email field is required.", page.EmailFieldRequired.Text);
 }
Exemplo n.º 12
0
 //Registration page assertions by Tsvetomir Pavlov
 //Check if registration is successfull
 public static void AssertSuccessRegistration(this RegistrationPage page)
 {
     Assert.IsTrue(page.HelloMessage.Displayed);
 }