public void CareersNavigation() { try { homePage.NavigateToSubMenu(homePage.WorkWithWabashMenu, homePage.CareersSubMenu); careersPage = new CareersPage(); actualUrl = WindowHelper.GetUrl(); Assert.AreEqual(careersPage.Url, actualUrl, string.Format("Actual url: <{0}> is not equal to expected: <{1}>", actualUrl, careersPage.Url)); Logger.Info("ASSERT - Url is correct"); actualBreadcrumb = careersPage.GetBreadcrumbString(); Assert.AreEqual(careersPage.Breadcrumb, actualBreadcrumb, string.Format("Actual breadcrumb: <{0}> is not equal to expected: <{1}>", actualBreadcrumb, careersPage.Breadcrumb)); Logger.Info("ASSERT - Breadcrumb is correct"); } catch (Exception exception) { GenericHelper.TakeScreenShot(); Logger.Error(exception.Message); Logger.Error(exception.StackTrace); throw; } }