Ejemplo n.º 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")
Ejemplo n.º 2
0
	def test_orderPad(self):
		order_pad = Page()
		order_pad.orderPad_buy(self.driver)
		order_pad.orderPadNavs.orderItemBox.send_keys('M01BOTTFI1212')
		order_pad.orderPadNavs.QTYbox.send_keys('10')
		order_pad.orderPadNavs.add_button.click()
		order_pad.getCartCount(self.driver)
		self.assertEqual(order_pad.userCartCount, "1 Cart")
Ejemplo n.º 3
0
	def test_excelUpload(self):
		xCell = Page()
		xCell.excelUploadPage(self.driver)
		xCell.uploadNavs.upload.send_keys(os.getcwd()+"/productCSV.xlsx")
		xCell.uploadNavs.sheetName.send_keys('Test Sheet')
		xCell.uploadNavs.ATC.click()
		Nav().goHome(self.driver)
		try:
			xCell.getCartCount(self.driver)
			self.assertEqual(xCell.userCartCount, "1 Cart")
		except:
			print("failed to upload")
Ejemplo n.º 4
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")