コード例 #1
0
 public void EditCreditCardInfo(String paymentType, String accountNumber, String routingNumber)
 {
     CreditCardLink.Click();
     new SelectElement(PaymentTypeSelect).SelectByText(paymentType);
     AccountNumberField.Clear();
     AccountNumberField.SendKeys(accountNumber);
     if (!routingNumber.Equals("N/A"))
     {
         RoutingNumberField.Clear();
         RoutingNumberField.SendKeys(routingNumber);
     }
     InputComments();
     UpdateButton.Click();
 }
コード例 #2
0
        public void InputPaymentInformation(String paymentType, String accountNumber, String expirationMonth, String expirationYear)
        {
            SelectElement paymentTypeDropdown     = new SelectElement(PaymentTypeSelect);
            SelectElement expirationMonthDropdown = new SelectElement(ExpirationMonthDropdown);
            SelectElement expirationYearDropdown  = new SelectElement(ExpirationYearDropdown);

            SameBillingAndShippingAddressCheckbox.Click();
            paymentTypeDropdown.SelectByText(paymentType);
            Thread.Sleep(500);
            AccountNumberField.SendKeys(accountNumber);
            Thread.Sleep(500);
            expirationMonthDropdown.SelectByText(expirationMonth);
            expirationYearDropdown.SelectByText(expirationYear);
            ContinueButton.Click();
            if (Driver.WebDriver.PageSource.Contains("Please Verify this ARO is not a Duplicate"))
            {
                ContinueButton.Click();
            }
        }