Exemplo n.º 1
0
 def test_credit_card_transaction_with_existing_member(self):
     driver = self.driver
     
     s = SigninPage(driver, "https://richard.ourdeal.com.au/signin/")
     s.signin("*****@*****.**", "543210")
     
     h = Home(driver,"http://richard.ourdeal.com.au/deal/nifty-spot-in-car-iphone--to-stereo-transmitter")
     paymentPage = h.clickBuy()
     #paymentPage.selectMultiPricePointDeal(1)
     paymentPage.enterCustomData()
     paymentPage.enterPhone()
     paymentPage.enterDealerLocation()
     paymentPage.enterShippingDetails()
     paymentPage.enterQuantity(1)
     paymentPage.tickOptInText(1)
Exemplo n.º 2
0
 def xtest_credits(self):
     
     driver = self.driver
     
     s = SigninPage(driver, "https://richard.ourdeal.com.au/signin/")
     s.signin("*****@*****.**", "543210")
     
     h = Home(driver,"http://richard.ourdeal.com.au/deal/parcfitness-3-month-gym-membership-bellevue-hill-rose-bay-and-gymtime-balgowlah-locations-feb")
     paymentPage = h.clickBuy()
     paymentPage.enterQuantity(5)
     #paymentPage.enterCustomData()
     #paymentPage.enterPhone()
     paymentPage.enterDealerLocation()
     #paymentPage.enterShippingDetails()
     paymentPage.applyCredit()
     time.sleep(3)
     payFlowPage = paymentPage.clickCheckOutWithCreditCard()
     payFlowPage.enterCreditCardDetail()
Exemplo n.º 3
0
 def xtest_credits_plus_discount_code(self):
     driver = self.driver
     
     s = SigninPage(driver, "https://richard.ourdeal.com.au/signin/")
     s.signin("*****@*****.**", "543210")
     
     h = Home(driver,"http://richard.ourdeal.com.au/deal/convicts-cruise-unique-sydney-cruises")
     paymentPage = h.clickBuy()
     paymentPage.enterQuantity(2)
     #paymentPage.enterCustomData()
     #paymentPage.enterPhone()
     paymentPage.enterDealerLocation()
     #paymentPage.enterShippingDetails()
     paymentPage.applyDiscountCode()
     time.sleep(3)
     paymentPage.applyCredit()
     time.sleep(3)
     payFlowPage = paymentPage.clickCheckOutWithCreditCard()
     payFlowPage.enterCreditCardDetail()
Exemplo n.º 4
0
 def test_Paypal(self):
     driver = self.driver
     h = Home(driver,"http://richard.ourdeal.com.au/deal/quit-cigarettes-forever-hypnotherapy-session")
     h.removePopup()
     time.sleep(3)
     h.logIn("*****@*****.**","543210")
     paymentPage = h.clickBuy()
     paymentPage.enterShippingDetails()
     paymentPage.enterPhone()
     paymentPage.enterDealerLocation()
     paymentPage.enterCustomData()
     payPalPage = paymentPage.clickCheckOutWithPaypal()
Exemplo n.º 5
0
 def test_Credit_card_transaction_using_OD_Credit(self):
     driver = self.driver
     h = Home(driver,"http://richard.ourdeal.com.au/deal/four-seasons-tennis-school-three-hours-of-group-tennis-lessons")
     h.removePopup()
     time.sleep(3)
     h.logIn("*****@*****.**","543210")
     paymentPage = h.clickBuy()
     paymentPage.applyCredit()
     time.sleep(3)
     paymentPage.enterDealerLocation()
     paymentPage.enterCustomData()
     payFlowPage = paymentPage.clickCheckOutWithCreditCard()
     payFlowPage.enterCreditCardDetail()
Exemplo n.º 6
0
 def test_Credit_card_transaction_and_then_cancelling_payment_on_credit_payment_screen(self):
     
     driver = self.driver
     h = Home(driver,"http://richard.ourdeal.com.au/deal/quit-cigarettes-forever-hypnotherapy-session")
     h.removePopup()
     time.sleep(3)
     #
     h.logIn("*****@*****.**","543210")
     
     paymentPage = h.clickBuy()
     
     payFlowPage = paymentPage.clickCheckOutWithCreditCard()
     payFlowPage.enterCreditCardDetail()
     payFlowPage.cancelPayment()
Exemplo n.º 7
0
 def test_credit_card_transaction_using_Discount_code(self):
     driver = self.driver
     h = Home(driver,"http://richard.ourdeal.com.au/deal/byrontrader-silver-yoga-exercise-ball-with-pump")
     h.removePopup()
     time.sleep(3)
     #
     h.logIn("*****@*****.**","543210")
     
     paymentPage = h.clickBuy()
     paymentPage.applyDiscountCode()
     paymentPage.applyCredit()
     time.sleep(3)
     paymentPage.enterDealerLocation()
     paymentPage.enterCustomData()
     paymentPage.enterPhone()
     payFlowPage = paymentPage.clickCheckOutWithCreditCard()
     payFlowPage.enterCreditCardDetail()