예제 #1
0
        public BankingInfoPage UseCard()
        {
            SelectElement month = new SelectElement(ExpMonth);

            month.SelectByValue(monthValue);
            SelectElement year = new SelectElement(ExpYear);

            year.SelectByText(yearValue);
            CardNumber.SendKeys(ccnumber);
            return(this);
        }
예제 #2
0
 public void FillInfo(ClientInfo clientInfo)
 {
     FirstName.SendKeys(clientInfo.FirstName);
     LastName.SendKeys(clientInfo.LastName);
     Username.SendKeys(clientInfo.Username);
     Email.SendKeys(clientInfo.Email);
     Address1.SendKeys(clientInfo.Address1);
     Address2.SendKeys(clientInfo.Address2);
     Country.SelectByIndex(clientInfo.Country);
     State.SelectByIndex(clientInfo.State);
     Zip.SendKeys(clientInfo.Zip);
     CardName.SendKeys(clientInfo.CardName);
     CardNumber.SendKeys(clientInfo.CardNumber);
     CardExpiration.SendKeys(clientInfo.CardExpiration);
     CardCVV.SendKeys(clientInfo.CardCVV);
     ClickSubmitButton();
 }
예제 #3
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);
 }
예제 #4
0
 public BookFlightPage InputCardNumber(string number)
 {
     CardNumber.Click();
     CardNumber.SendKeys(number);
     return(this);
 }