예제 #1
0
	def test_checkout(self):
		cart = Page()
		cart.gotoCart(self.driver)
		cart.cart(self.driver)
		cart.checkout_button.click()
		cart.orderInfo(self.driver)
		cart.orderNav.PONum.send_keys('1')
		cart.orderNav.continueButton.click()
		self.mainNavs.confirmPay(self.driver)
		self.driver.find_element_by_xpath('/html/body/div[1]/div/header/section[1]/div[1]/div/div/div/div[2]/div/p[1]/a').click()
예제 #2
0
	def test_emptyCart(self):
		cartDashboard = Page()
		cartDashboard.gotoCart(self.driver)
		cartDashboard.cart(self.driver)
		cartDashboard.emptyCart.click()
		self.driver.switch_to.alert.accept()