Пример #1
0
 public void SetUp()
 {
     Initialize();
     _practiceRegistrationPage = new AutomationPracticeRegistrationPage(Driver);
     _practiceRegistrationPage.NavigateTo();
     _user = AutomationPracticeRegistrationFactory.Create();
 }
Пример #2
0
        public void NavigationEmailForm(AutomationPracticeRegistrationModel user)
        {
            SignInButton.Click();
            EmailAddressField.SendKeys(user.EmailAddressField);
            CreateAccountButton.Click();

            Driver.ScrollTo(EmailField);
        }
        public void NavigationEmailForm(AutomationPracticeRegistrationModel user)
        {
            SignInButton.Click();
            EmailAddressField.SetText(user.EmailAddressField);
            CreateAccountButton.Click();

            EmailField.ScrollTo().ToBeVisible();
        }
Пример #4
0
        public void ErrorisThrown_When_PasswordIsEmpty()
        {
            _user          = AutomationPracticeRegistrationFactory.Create();
            _user.Password = string.Empty;

            _fill.FillForm(_user);

            _page.AssertAlert("There is 1 error\r\npasswd is required.");
        }
Пример #5
0
        public void ErrorisThrown_When_PostCodeIsEmpty()
        {
            _user          = AutomationPracticeRegistrationFactory.Create();
            _user.PostCode = string.Empty;

            _fill.FillForm(_user);

            _page.AssertAlert("There is 1 error\r\nThe Zip/Postal code you've entered is invalid. It must follow this format: 00000");
        }
Пример #6
0
        public void ErrorisThrown_When_LastNameIsEmpty()
        {
            _user          = AutomationPracticeRegistrationFactory.Create();
            _user.LastName = string.Empty;

            _fill.FillForm(_user);

            _page.AssertAlert("There is 1 error\r\nlastname is required.");
        }
        public void FillForm(AutomationPracticeRegistrationModel _user)
        {
            _page = new ErrorThrows(Driver);

            _page.emailAdressField.SendKeys(_user.Email);
            _page.createAccountButton.Click();
            _page.Title.Click();
            _page.FirstName.SendKeys(_user.FirstName);
            _page.LastName.SendKeys(_user.LastName);
            _page.Password.SendKeys(_user.Password);
            _page.Days.SendKeys("1");
            _page.Months.SendKeys("February");
            _page.Year.SendKeys("1990");
            _page.Address.SendKeys(_user.Address);
            _page.City.SendKeys(_user.City);
            _page.State.SendKeys(_user.State);
            _page.PostCode.SendKeys(_user.PostCode);
            _page.MobilePhone.SendKeys(_user.MobilePhone);
            _page.AssignAddress.SendKeys(_user.AssingAdress);
            _page.SubmitButton.Click();
        }