public void RegisterWithoutPhoneNumber() { AutomationPractice automationPractice = new AutomationPractice(Driver); var user = AutomationPracticeFactories.Create(); automationPractice.FillForm(user); automationPractice.PhoneMobile.Clear(); automationPractice.RegisterButton.Click(); string msg = "You must register at least one phone number."; automationPractice.AssertAlertMessage(msg, automationPractice.AlertMessage); }
public void RegisterWithNoPasword() { AutomationPractice automationPractice = new AutomationPractice(Driver); var user = AutomationPracticeFactories.Create(); automationPractice.FillForm(user); automationPractice.PasswordPanel.Clear(); automationPractice.RegisterButton.Click(); string msg = "passwd is required."; automationPractice.AssertAlertMessage(msg, automationPractice.AlertMessage); }
public void RegisterNumberLetterZipcode() { AutomationPractice automationPractice = new AutomationPractice(Driver); var user = AutomationPracticeFactories.Create(); automationPractice.FillForm(user); automationPractice.PosteCodePanel.Clear(); automationPractice.PosteCodePanel.SendKeys("981AB"); automationPractice.RegisterButton.Click(); string msg = "The Zip/Postal code you've entered is invalid. It must follow this format: 00000"; automationPractice.AssertAlertMessage(msg, automationPractice.AlertMessage); }
public void RegisterWithoutFirstName() { AutomationPractice automationPractice = new AutomationPractice(Driver); var user = AutomationPracticeFactories.Create(); automationPractice.FillForm(user); automationPractice.FirstNamePanel.Clear(); automationPractice.RegisterButton.Click(); string msg = "firstname is required."; automationPractice.AssertAlertMessage(msg, automationPractice.AlertMessage); }
public void RegisterWithFirstNameStartWithSpace() { AutomationPractice automationPractice = new AutomationPractice(Driver); var user = AutomationPracticeFactories.Create(); automationPractice.FillForm(user); automationPractice.FirstNamePanel.Clear(); automationPractice.FirstNamePanel.SendKeys(" Duman" + Keys.Tab); automationPractice.RegisterButton.Click(); string msg = "firstname is required."; automationPractice.AssertAlertErrorMessage(msg, automationPractice.AlertMessage); }