Ejemplo n.º 1
0
        public void WhenEntersValidData()
        {
            CreateAccountPage createAccPage = new CreateAccountPage(Driver);

            createAccPage.MrClickable().Click();
            //createAccPage.MrsClickable().Click();

            createAccPage.FirstNameInputField().SendKeys(name);
            createAccPage.LastNameInputField().SendKeys(lastname);


            createAccPage.EmailField().Equals(emailValue);

            createAccPage.CustomerPassword().SendKeys("123456");

            SelectElement daySelect = new SelectElement(createAccPage.DateOfBirth());

            daySelect.SelectByValue("2");
            SelectElement monthSelect = new SelectElement(createAccPage.MonthOfBirth());

            monthSelect.SelectByValue("4");
            SelectElement yearSelect = new SelectElement(createAccPage.YearOfBirth());

            yearSelect.SelectByValue("2000");

            createAccPage.SignUpCheckBox().Click();
            createAccPage.ReceiveCheckBox().Click();

            createAccPage.FirstName().Equals(name);
            createAccPage.LastName().Equals(lastname);

            createAccPage.Company().SendKeys("Kompanija");
            createAccPage.Address().Clear();
            createAccPage.Address().SendKeys("Novosadskog Sajma");
            createAccPage.Address2().Clear();
            createAccPage.Address2().SendKeys("Jevrejska 2");
            createAccPage.City().Clear();
            createAccPage.City().SendKeys("Novi Sad");

            var contrySelect = new SelectElement(createAccPage.State());

            contrySelect.SelectByValue("1");

            var stateSelect = new SelectElement(createAccPage.State());

            stateSelect.SelectByValue("2");

            createAccPage.Additional_Info().SendKeys("sdasjdsaljdlajdladlajdsa");
            createAccPage.ZipCode().SendKeys("12345");
            createAccPage.HomePhone().SendKeys("01234567");
            createAccPage.MobilePhone().SendKeys("5555555");
            createAccPage.Assign().Clear();
            createAccPage.Assign().SendKeys("Nesto Nesto");
        }