public void able_to_do_search() { HomePage homePage = new HomePage (driver); homePage.navigateToAppRoot (); homePage.enterSearch ("red shoes"); homePage.clickSearch (); }
public void able_to_sort_the_product_by_high_to_low() { HomePage homePage = new HomePage (driver); homePage.navigateToAppRoot (); homePage.enterSearch ("red shoes"); CategoryPage categoryPage = homePage.clickSearch (); categoryPage.sortBy ("Price high to low"); Assert.AreEqual ("Price high to low" , categoryPage.sortBy ("Price high to low")); }