public void SetUp() { Driver = new ChromeDriver(); _welcomePageObject = new WelcomePageObject(Driver); string url = "http://localhost:4200/home"; Driver.Navigate().GoToUrl(url); }
public void Go_To_Welcome_From_Posts() { try { Driver.Navigate().GoToUrl("http://localhost:4200/posts"); WelcomePageObject welcome = _topMenuPageObject.RedirectToHome(); Assert.AreEqual("http://localhost:4200/home", Driver.Url); } catch (AssertFailedException afe) { FileLogHelper.Save(afe); } }