Skip to content

Instantly share code, notes, and snippets.

@executeautomation
Created October 3, 2021 10:19
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/9cb5e2c4a2a304a6c3d13ac0d0041eea to your computer and use it in GitHub Desktop.
Save executeautomation/9cb5e2c4a2a304a6c3d13ac0d0041eea to your computer and use it in GitHub Desktop.
[Fact]
public void TestRegisterUser()
{
var driver = webDriverFixture.ChromeDriver;
testOutputHelper.WriteLine("First test");
driver
.Navigate()
.GoToUrl("http://eaapp.somee.com");
var userName = new Fixture().Create<string>();
var password = new Fixture().Create<string>();
var email = new Fixture().Create<MailAddress>();
driver.FindElementByLinkText("Register").Click();
driver.FindElementById("UserName").SendKeys(userName);
driver.FindElementById("Password").SendKeys(password);
driver.FindElementById("ConfirmPassword").SendKeys(password);
driver.FindElementById("Email").SendKeys(email.Address);
testOutputHelper.WriteLine("Test completed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment