def test_listDelete(self): self.mainNavs.myLists.click() Lists = Page() Lists.listPage(self.driver) self.mainNavs.listRadio(self.driver).click() Lists.listNav.deleteList.click() self.mainNavs.confirm(self.driver).click()
def test_listCreate(self): self.mainNavs.myLists.click() Lists = Page() Lists.listPage(self.driver) Lists.listNav.addList.click() Lists.addListPage(self.driver) Lists.addList.addlistName.send_keys("test list") Lists.addList.addlistDescription.send_keys("This is a list to test Lists") Lists.addList.addnewList.click()
def test_listToCart(self): self.mainNavs.myLists.click() Product = Page() Product.shopBotticino(self.driver) Product.productPurchase(self.driver) Product.QTYbox.send_keys("15") Product.ATL_button.click() self.mainNavs.addItemtoList(self.driver).click() self.mainNavs.mainUserNav(self.driver) self.mainNavs.myLists.click() Product.listPage(self.driver) Product.listNav.addListToCart.click() try: Product.getCartCount(self.driver) assertEqual(Product.userCartCount, "1 Cart") except: print("cart count failed")