Exemple #1
0
        public void RegisterNewPhotographer_Positive()
        {
            RegisterPage = new RegisterPage(driver);
            RegisterPage.GoToPage();
            RegisterPage.ClearAllInputsOnThePage();

            RegisterPage.FirstNameField.SendKeys(Data.firstName);
            RegisterPage.EmailField.SendKeys(Data.email);
            RegisterPage.PasswordField.SendKeys(Data.password);
            RegisterPage.ConfirmPasswordField.SendKeys(Data.password);
            RegisterPage.AcceptTermCheckBox.Click();
            CreateBusinessProfilePage = RegisterPage.CreateAccountButtonClick();

            //   Assert.True(CreateBusinessProfilePage.PageTitle.Text.Contains("Create a public business profile"));

            CreateBusinessProfilePage.ClearAllInputsOnThePage();
            CreateBusinessProfilePage.BusinessNameField.SendKeys(Data.firstName);
            CreateBusinessProfilePage.CityField.SendKeys(Data.City);
            CreateBusinessProfilePage.StateListBox.SelectByText("Alabama");
            CreateBusinessProfilePage.ZipCodeField.SendKeys(Data.ZipCode);
            CreateBusinessProfilePage.WeddingCategoryListBox.SelectByText("Photographer");
            CreateBusinessProfilePage.PublicEmailAddressField.SendKeys(Data.email_3);
            CreateBusinessProfilePage.PhoneField.SendKeys(Data.Phone);
            CreateBusinessProfilePage.CreateAccount.Click();
        }