public void Testcase() { Console.WriteLine("Starting First Testcase execution"); DriverContext.Driver = new ChromeDriver(); DriverContext.Driver.Navigate().GoToUrl(""); StartPage startPage = new StartPage(); LoginPage loginPage = startPage.ClickLoginLink(); loginPage.LoginToApplication("Username", "Password"); }
public void CodeBeforeModification1() { DriverContext.Driver = new ChromeDriver(); DriverContext.Driver.Navigate().GoToUrl("http://demowebshop.tricentis.com/"); StartPage startPage = new StartPage(); LoginPage loginPage = startPage.ClickLoginLink(); loginPage.LoginToApplication("Username", "Password"); RegisterationPage registerationPage = loginPage.ClickOnRegisterButton(); registerationPage.EnterFirstName("FirstName"); registerationPage.EnterLastName("LastName"); registerationPage.ClickOnRegisterButton(); }