示例#1
0
        public void WhenIFillBillingInfomationAndPaymentInformationAsBelow(Table table)
        {
            dynamic     info        = table.CreateDynamicInstance();
            BookingForm bookingForm = new BookingForm(info.Title.ToString(), info.Name.ToString(), info.Surname.ToString(), info.Email.ToString(), info.Phone.ToString(), info.Birthday.ToString(), info.ExpirationDate.ToString()
                                                      , info.Nationality.ToString(), info.CardType.ToString(), info.CardNumber.ToString(), info.CardExpiryYear.ToString(), info.CVV.ToString(), info.PassportNumber.ToString());

            _bookingCompletionPage.FillingBillingInformation(bookingForm);
        }
示例#2
0
 public void FillingBillingInformation(BookingForm bookingForm)
 {
     SelectTitle.SelectByValue(bookingForm.Title);
     NameInput.SendKeys(bookingForm.Name);
     SurName.SendKeys(bookingForm.Surname);
     Email.SendKeys(bookingForm.Email);
     Phone.SendKeys(bookingForm.Phone);
     Birthday.SendKeys(bookingForm.Birthday.ToString());
     PassportNumber.SendKeys(bookingForm.PassportNumber);
     ExpirationDate.SendKeys(bookingForm.ExpirationDate);
     NationalityAnchor.Click();
     _wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementExists(By.XPath(BookingCompletionPageConstants.NationalityItemSelectPath)));
     NationalityItemSelect.Click();
     SelectCardType.SelectByValue(bookingForm.CardType);
     CardNumber.SendKeys(bookingForm.CardNumber);
     CardExpiryYear.SelectByValue(bookingForm.CardExpiryYear);
     CVV.SendKeys(bookingForm.CVV);
 }