Skip to content

Instantly share code, notes, and snippets.

@executeautomation
Created October 3, 2021 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save executeautomation/874073f74f092edc86e179d65be1ee88 to your computer and use it in GitHub Desktop.
Save executeautomation/874073f74f092edc86e179d65be1ee88 to your computer and use it in GitHub Desktop.
[Fact]
public void TestRegisterUserWithType()
{
var driver = webDriverFixture.ChromeDriver;
testOutputHelper.WriteLine("First test");
driver
.Navigate()
.GoToUrl("http://eaapp.somee.com");
var fixture = new Fixture();
var model = fixture.Build<RegisterUserModel>()
.With(x => x.Email == "karthik@ea.com")
.Create();
driver.FindElementByLinkText("Register").Click();
driver.FindElementById("UserName").SendKeys(model.Name);
driver.FindElementById("Password").SendKeys(model.Password);
driver.FindElementById("ConfirmPassword").SendKeys(model.CPassword);
driver.FindElementById("Email").SendKeys(model.Email);
testOutputHelper.WriteLine("Test completed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment