public void ContinueShoppingTest() { // This will set the last search page to IProductsByCategoryPage. var shoesPage = cartPage .Search("test") .SelectParentCategory("Apparel") .SelectCategory("Shoes"); shoesPage.GoToShoppingCart(); var page = orderSummary.ContinueShopping <IProductsByCategoryPage>(); Assert.IsNotNull(page); Assert.AreEqual(shoesPage, page); }