public BankingInfoPage UseCard() { SelectElement month = new SelectElement(ExpMonth); month.SelectByValue(monthValue); SelectElement year = new SelectElement(ExpYear); year.SelectByText(yearValue); CardNumber.SendKeys(ccnumber); return(this); }
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(); }
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); }
public BookFlightPage InputCardNumber(string number) { CardNumber.Click(); CardNumber.SendKeys(number); return(this); }