コード例 #1
0
        public void Step4SelectPlan(string planType1, string planType2, bool SavingsYN, int OneYearYearAmount)
        {
            if (planType1 == "TwoYearCollege" || planType2 == "TwoYearCollege")
            {
                TwoYearCheckbox.Click();
            }
            if (planType1 == "OneYearUniversity" || planType2 == "OneYearUniversity")
            {
                OneYearCheckbox.Click();
                OneYearAmount.SendKeys(OneYearYearAmount.ToString());
            }

            if (planType1 == "FourYearCollege")
            {
                FourYearCollegeCheckbox.Click();
            }

            if (planType1 == "TwoPlusTwo")
            {
                TwoPlusTwoCheckbox.Click();
            }

            if (planType1 == "FourYearUniversity")
            {
                FourYearUniversityCheckBox.Click();
            }

            if (SavingsYN)
            {
                SavingsCheckbox.Click();
            }
            NextButton.Click();
        }
コード例 #2
0
        public void HowToPay(string planType1, string planType2, int oneyearAmount, string paymentPlan, bool AutomaticYN)
        {
            if (AutomaticYN)
            {
                var d = new Data.ACHInfo();
                PrepaidAutomaticWithdrawalRadio.Click();
                if ((planType1 + planType2 + oneyearAmount).ToLower().Contains("twoyear"))
                {
                    TwoYearCollegeCheckbox.Click();
                }
                if ((planType1 + planType2 + oneyearAmount).ToLower().Contains("fouryearcollege"))
                {
                    FourYearCollegeCheckbox.Click();
                }
                if ((planType1 + planType2 + oneyearAmount).ToLower().Contains("fouryearuniversity"))
                {
                    FourYearUniversityCheckbox.Click();
                }
                if ((planType1 + planType2 + oneyearAmount).ToLower().Contains("twoplustwo"))
                {
                    TwoPlusTwoCheckbox.Click();
                }
                switch (oneyearAmount)
                {
                case 0:
                    break;

                case 1:
                    OneYearUniversity1CheckBox1.Click();
                    break;

                case 2:
                    OneYearUniversity1CheckBox1.Click();
                    OneYearUniversity1CheckBox2.Click();
                    break;

                case 3:
                    OneYearUniversity1CheckBox1.Click();
                    OneYearUniversity1CheckBox2.Click();
                    OneYearUniversity1CheckBox3.Click();
                    break;

                case 4:
                    OneYearUniversity1CheckBox1.Click();
                    OneYearUniversity1CheckBox2.Click();
                    OneYearUniversity1CheckBox3.Click();
                    OneYearUniversity1CheckBox4.Click();
                    break;
                }
                FinancialInstitutionNameField.SendKeys(d.BankName);
                FinancialInstitutionAccountNumField.SendKeys(d.BankAccountNum);
                FinancialInstitutionRoutingField.SendKeys(d.BankRouting);
                var FinancialInstitutionTypeDropdownSelect = new SelectElement(FinancialInstitutionAccountTypeDropdown);
                FinancialInstitutionTypeDropdownSelect.SelectByValue(d.BankAccountType);
                Console.WriteLine("[BANK: " + d.BankName + "]");
                Console.WriteLine("[BANK ACCOUNT #: " + d.BankAccountNum + "]");
                Console.WriteLine("[BANK ACCOUNT TYPE: " + d.BankAccountType + "]");
                PrepaidTOSCheckbox.Click();
            }
            else
            {
                PrepaidMailInRadio.Click();
            }

            NextButton.Click();
        }