Exemplo n.º 1
0
        public void Register()
        {
            HomePage          homePage          = new HomePage(driver);
            SignInPage        signInPage        = new SignInPage(driver);
            CreateAccountPage createAccountPage = new CreateAccountPage(driver);
            MyAccountPage     myAccountPage     = new MyAccountPage(driver);


            homePage.GoToPage();
            homePage.ClickOnSignIn();

            int i = new Random().Next(0, 150);

            signInPage.CreateAccount("FakeEmail" + i + "@fake.com");


            createAccountPage.FillPersonalInfo("Patricia", "Londoño", "clave1");
            createAccountPage.FillDropdowns("4", "4", "1995");
            createAccountPage.FillAddress("AFakeCompany", "Street fake", "123", "New Fake", "32", "10013", "21", "12345678", "MyFakeAlias");

            Assert.AreEqual("Welcome to your account. Here you can manage all of your personal information and orders.", myAccountPage.GetLogInMsg());
        }