public void GivenUserFillsPersonalDetails(UIUserPersonalDetails table) { _context.Grid = PromoCardRegistrationPage.FindPersonalDetailsForm(); _context.Grid .SendText(FirstName, table.FirstName) .SendText(LastName, table.LastName) .SendText(DOB, DataBuilderHelper.GenerateDob()) .SendText(Email, _context.Email = DataBuilderHelper.GenerateEmail()); SearchElementByCss(Citizenship) .FindElements(By.CssSelector("option")) .SingleOrDefault(it => it.Text.Contains(table.Country)).Click(); }
public void FillRandomEmail(string fieldName, string opt = null) { _context.Email = DataBuilderHelper.GenerateEmail(); FillInput(fieldName, _context.Email); }