public void VerifyUserIsNavigatedBackToProductPageWhenRemovingExistingProductFromCard() { yourOrderPage = new YourOrderPage(CmdDriver.Driver); productsPage = new ProductsPage(CmdDriver.Driver); extentReportUtils.createATestCase("Verify the user is navigated back to Product page when removing the existing product from the card"); extentReportUtils.addTestLog(Status.Info, "VerifyUserIsNavigatedBackToProductPageWhenRemovingExistingProductFromCard"); productsPage.ClickAcceptAllCookies(); // Choose product and click on 'Buy Now' button for it productsPage.ClickBuyNowButtonByProductName(ProductsEnum.DEVCRAFT_COMPLETE); yourOrderPage.ClickAcceptAllCookies(); // Click Delete item link by product name yourOrderPage.ClickDeleteItemButtonByProductName(ProductsEnum.DEVCRAFT_COMPLETE); // Assert Emtry Card message text Assert.AreEqual("Your shopping cart is empty!", yourOrderPage.GetEmptyCardMessageText()); // Click "Browse Products" button yourOrderPage.ClickBrowseProductsButton(); // Assert Header on Product page Assert.AreEqual("Pricing", productsPage.GetHeaderText()); }