public void ThenSuccessfulLoginAndDashboardPageShouldGetDisplayed() { String expectedPage = "Dashboard"; DashBoardPage dashBoardPage = new DashBoardPage(); string actualPage = dashBoardPage.goToDashboardPage(driver); Assert.AreEqual(expectedPage, actualPage); }