Skip to content

Instantly share code, notes, and snippets.

@executeautomation
Created September 5, 2021 10:24
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/547da9dfac99e9f03ff978a1af7d30bc to your computer and use it in GitHub Desktop.
Save executeautomation/547da9dfac99e9f03ff978a1af7d30bc to your computer and use it in GitHub Desktop.
[Theory]
[MemberData(nameof(Data))]
public void TestRegisterUser(string username, string password, string cpassword, string email)
{
var driver = webDriverFixture.ChromeDriver;
testOutputHelper.WriteLine("First test");
driver
.Navigate()
.GoToUrl("http://eaapp.somee.com");
driver.FindElementByLinkText("Register").Click();
driver.FindElementById("UserName").SendKeys(username);
driver.FindElementById("Password").SendKeys(password);
driver.FindElementById("ConfirmPassword").SendKeys(cpassword);
driver.FindElementById("Email").SendKeys(email);
testOutputHelper.WriteLine("Test completed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment