void ReleaseDesignerOutlets()
        {
            if (button_next != null)
            {
                button_next.Dispose();
                button_next = null;
            }

            if (EmailBar != null)
            {
                EmailBar.Dispose();
                EmailBar = null;
            }

            if (LoginBackButton != null)
            {
                LoginBackButton.Dispose();
                LoginBackButton = null;
            }

            if (LoginButton != null)
            {
                LoginButton.Dispose();
                LoginButton = null;
            }

            if (LoginEmail != null)
            {
                LoginEmail.Dispose();
                LoginEmail = null;
            }

            if (LoginHelpButton != null)
            {
                LoginHelpButton.Dispose();
                LoginHelpButton = null;
            }

            if (LoginPassword != null)
            {
                LoginPassword.Dispose();
                LoginPassword = null;
            }

            if (PasswordBar != null)
            {
                PasswordBar.Dispose();
                PasswordBar = null;
            }
        }
Пример #2
0
 public void FillFormWithoutEmail(AutomationPracticeModel user)
 {
     FirstNameYPISection.SendKeys(user.FirstNameYPISection);
     LastNameYPISection.SendKeys(user.LastNameYPISection);
     EmailBar.Clear();
     Password.SendKeys(user.Password);
     Address.SendKeys(user.Address);
     City.SendKeys(user.City);
     State.Click();
     StateChoise.Click();
     Zip.SendKeys(user.Zip);
     MobilePhone.SendKeys(user.MobilePhone);
     AddressAlias.Clear();
     AddressAlias.SendKeys(user.AddressAlias);
     RegisterButton.Click();
 }
 public void AssertSameEmailIsInTheRefistrationForm()
 {
     Assert.AreEqual("*****@*****.**", EmailBar.GetAttribute("value"));
 }