Example #1
0
	def test_productShopping(self):
		Product = Page()
		Product.shopBotticino(self.driver)
		Product.productPurchase(self.driver)
		Product.QTYbox.send_keys("15")
		Product.ATC_button.click()
		Product.getCartCount(self.driver)
		self.assertEqual(Product.userCartCount, "1 Cart")
Example #2
0
	def test_listPopulate(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()
		##### add Cordova #######
		Product.shopCordova(self.driver)
		Product.productPurchase(self.driver)
		self.mainNavs.getQTYBox(3, self.driver).send_keys("15")
		self.mainNavs.getQTYBox(4, self.driver).send_keys("15")
		Product.QTYbox.send_keys("15")
		Product.ATL_button.click()
		self.mainNavs.addItemtoList(self.driver).click()
Example #3
0
	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")