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.AssertAlertErrorMessage(msg, automationPractice.AlertMessage);
        }
        public void RegisterWithoutPasword()
        {
            AutomationPractice automationPractice = new AutomationPractice(Driver);
            var user = AutomationPracticeFactories.Create();

            automationPractice.FillForm(user);
            automationPractice.PasswordPanel.Clear();
            automationPractice.RegisterButton.Click();

            string msg = "passwd is required.";

            automationPractice.AssertAlertErrorMessage(msg, automationPractice.AlertMessage);
        }
        public void RegisterLetterInZipcode()
        {
            AutomationPractice automationPractice = new AutomationPractice(Driver);
            var user = AutomationPracticeFactories.Create();

            automationPractice.FillForm(user);
            automationPractice.PosteCodePanel.Clear();
            automationPractice.PosteCodePanel.SendKeys("abCd");
            automationPractice.RegisterButton.Click();

            string msg = "The Zip/Postal code you've entered is invalid. It must follow this format: 00000";

            automationPractice.AssertAlertErrorMessage(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);
        }