public void SignIn_With_RandomEmail() { var fixture = new Fixture(); var emailAddressField = fixture.Create <String>(); EmailField.TypeText($"{emailAddressField}@gmail.com"); CreateAccountButton.Click(); }
public void FillForm(string firstName, string lastName, string pass, string email, string address, string city, string postcode, string phone) { if (firstName != "") { Driver.ScrollToElement(FirstNameField); FirstNameField.SendKeys(firstName); } if (lastName != "") { Driver.ScrollToElement(LastNameField); LastNameField.SendKeys(lastName); } if (pass != "") { Driver.ScrollToElement(PasswordField); PasswordField.SendKeys(pass); } if (email != "") { if (email == "none") { Driver.ScrollToElement(EmailField); EmailField.Clear(); } else { Driver.ScrollToElement(EmailField); EmailField.TypeText(email); } } if (address != "") { Driver.ScrollToElement(AddressField); AddressField.SendKeys(address); } if (city != "") { Driver.ScrollToElement(CityField); CityField.SendKeys(city); } if (postcode != "") { Driver.ScrollToElement(PostalCode); PostalCode.SendKeys(postcode); } if (phone != "") { MobilePhone.SendKeys(phone); } }