public void ValidateItemsDislayedInList() { APIndexPage indexPage = new APIndexPage(Driver, Url); APLoginPage loginPage = indexPage.Header.ClickOnSignIn(); indexPage = loginPage.Login("*****@*****.**", "1234"); indexPage.Header.ClickOnLists(); APListHomePage listPage = new APListHomePage(Driver); listPage.ClickOnFirstList(); APListSummaryPage summaryListPage = new APListSummaryPage(Driver); Assert.IsTrue(summaryListPage.TotalOfItemsDisplayed(), "Total of Items it not displayed"); Assert.IsTrue(summaryListPage.ItemCardIsDisplayed(), "No items are added to the List"); Assert.IsTrue(summaryListPage.SKUisDiplayed(), "SKU is displayed in Item Card"); }
public void RenameList() { APIndexPage indexPage = new APIndexPage(Driver, Url); APLoginPage loginPage = indexPage.Header.ClickOnSignIn(); indexPage = loginPage.Login("*****@*****.**", "1234"); indexPage.Header.ClickOnLists(); APListHomePage listPage = new APListHomePage(Driver); listPage.ClickOnFirstList(); APListSummaryPage summaryListPage = new APListSummaryPage(Driver); summaryListPage.ClickOnIcon(); summaryListPage.ClickOnRenameList(); summaryListPage.SendNewListName("NewAutoNameList"); summaryListPage.ClickUpdatebutton(); }