def test_refund_charge_partial(self): ch_id = BatchPayment.wx_pub() time.sleep(2) self.home_page.search_charge(ch_id) self.home_page.search_charge_button() order_page = OrderPage(self.driver) order_page.click_refund_Button() order_page.input_password_confirm(True) order_page.refund_partial() order_page.confirm_refund() order_page.check_refund_success() order_page.close_detail()
def test_refund_charge_all_Test(self): ch_id = BatchPayment_Test.bfb() BatchPayment_Test.notify(ch_id) time.sleep(2) print ch_id self.home_page.search_charge(ch_id) self.home_page.search_charge_button() order_page = OrderPage(self.driver) order_page.click_refund_Button() order_page.input_password_confirm(True) order_page.refund_all() order_page.confirm_refund() order_page.check_refund_success() order_page.close_detail()
def test_refund_charge_all(self): ch_id = BatchPayment.wx_pub() # wait for seconds, it runs too fast that notify status cannot update immediately. time.sleep(2) self.home_page.search_charge(ch_id) self.home_page.search_charge_button() order_page = OrderPage(self.driver) order_page.click_refund_Button() order_page.input_password_confirm(True) order_page.refund_all() order_page.confirm_refund() order_page.check_refund_success() order_page.close_detail()