예제 #1
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);
 }