public CompoundInterestPage EnterLoanTerm(LoanYears loanTerm)
        {
            string      id          = $"Number_Of_Years_{(int)loanTerm}";
            IWebElement radioButton = driver.FindElement(By.Id(id));

            radioButton.Click();

            return(this);
        }
Beispiel #2
0
        public CompoundInterestResultPage FillOutForm(double principal, string interestRate, LoanYears loanTerm)
        {
            // Set the Principal
            Principal.SendKeys(principal.ToString());

            // Set the Drop Down
            SelectElement interestDropDown = new SelectElement(InterestRate);

            interestDropDown.SelectByText(interestRate);

            string      id          = $"Number_Of_Years_{(int)loanTerm}";
            IWebElement radioButton = driver.FindElement(By.Id(id));

            radioButton.Click();

            CalculateButton.Click();

            return(new CompoundInterestResultPage(driver));
        }