Beispiel #1
0
        public void GivenIEnterTheRandomlyGeneratedBirthday(String testType)
        {
            int day   = rand.Next(1, 29);
            int month = rand.Next(1, 13);
            int year  = rand.Next(10, 100);

            IWebElement dayOfBirthElement = signUpPage.DayOfBirth();

            signUpPage.SelectDropdownByValue(day.ToString(), dayOfBirthElement);

            IWebElement monthOfBirthElement = signUpPage.MonthOfBirth();

            signUpPage.SelectDropdownByValue(month.ToString(), monthOfBirthElement);

            IWebElement yearOfBirthElement = signUpPage.YearOfBirth();

            signUpPage.SelectDropdownByValue("19" + year.ToString(), yearOfBirthElement);
        }