public void OurWorkPageCanBeNavigatedTo() { var ourWork = new OurWorkPage(Driver); var menu = new Menu(Driver); menu.NavigateToOurWork(); Assert.IsTrue(ourWork.IsCurrentPage()); }
public void task1() { MainPage main = new MainPage(chromeDriver); main.goToPage(); OurWorkPage page = main.go_to_workPage(); string title = page.getPageTitle(); if (title.Contains("our-work") || chromeDriver.Url.ToLower().Contains("our-work")) { Console.WriteLine("Search Passed"); } else { Console.WriteLine("Search Failed"); } }