/// <summary> /// Send Contact us message to exact email and name with exact text /// </summary> /// <param name="email"></param> /// <param name="name"></param> /// <param name="text"></param> /// <returns></returns> public ContactUsPage ContactUs(string email, string name, string text) { NameInput.SendKeys(name); EmailInput.SendKeys(email); MessageTextArea.SendKeys(text); SendSubmit.Click(); return(ConstructPage <ContactUsPage>()); }
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 CreateAlbumPage CrearAlbum(Album album) { foreach (var input in AllForm) { input.Clear(); } Thread.Sleep(1000); NameInput.SendKeys(album.Name); Thread.Sleep(1000); ArtistInput.SendKeys(album.Artist); Thread.Sleep(1000); YearInput.SendKeys(album.Year.ToString()); Thread.Sleep(1000); GenresInput.SendKeys(album.Genres); Thread.Sleep(1000); SubGenresInput.SendKeys(album.SubGenres); Thread.Sleep(1000); return(this); }
public void FillDummyDataInInputs(string data, string inputName) { switch (inputName) { case "Name": { NameInput.Clear(); NameInput.SendKeys(data); } break; case "Surname": { SurnameInput.Clear(); SurnameInput.SendKeys(data); } break; default: break; } }
public CreateGroupPage CrearGroup(Group group) { foreach (var input in AllForm) { input.Clear(); } Thread.Sleep(1000); NameInput.SendKeys(group.Name); Thread.Sleep(1000); StartYearInput.SendKeys(group.StartYear.ToString()); Thread.Sleep(1000); EndYearInput.SendKeys(group.EndYear.ToString()); Thread.Sleep(1000); CountryInput.SendKeys(group.Country); Thread.Sleep(1000); CityInput.SendKeys(group.City); Thread.Sleep(1000); UrlWikiInput.SendKeys(group.URLWiki); Thread.Sleep(1000); DescriptionInput.SendKeys(group.Description); Thread.Sleep(1000); return(this); }
public void InsertName(string name) { NameInput.SendKeys(name); NameInput.SendKeys(Keys.Enter); }
public void ChangeName(string value) { NameInput.Clear(); NameInput.SendKeys(value); }
public void InsertNameInput(String value) { NameInput.SendKeys(value); Logger.LogMessage("Inserted [ " + value + " ] on the field [ Name Input ]"); }