Created
October 3, 2021 10:19
-
-
Save executeautomation/9cb5e2c4a2a304a6c3d13ac0d0041eea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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