def redeem_single_course_enrollment_coupon(self, coupon_url, target_page): """ Redeem single course enrollment coupon Args coupon_url: Url of the coupon. target_page: Destination page. """ redeem_coupon_page = RedeemCouponPage(self.browser, coupon_url).visit() redeem_coupon_page.wait_for_course_tile() self.verify_course_info_on_coupon_redeem_page(redeem_coupon_page) redeem_coupon_page.redeem_enrollment(target_page)
def redeem_single_course_enrollment_coupon(self, coupon_url, target_page): """ Redeem single course enrollment coupon Args coupon_url: Url of the coupon. target_page: Destination page. """ redeem_coupon_page = RedeemCouponPage(self.browser, coupon_url).visit() redeem_coupon_page.wait_for_course_tile() self.verify_course_info_on_coupon_redeem_page(redeem_coupon_page) redeem_coupon_page.redeem_enrollment(target_page)
def redeem_multi_course_enrollment_coupon( self, coupon_code, target_page, course_title): """ Redeem single course enrollment coupon Args coupon_code: coupon_code to use as part of the url. target_page: Destination page. course_title: Title of the course. """ redeem_coupon_page = RedeemCouponPage(self.browser, coupon_code).visit() redeem_coupon_page.wait_for_course_tile() redeem_coupon_page.set_course_tile_index(course_title) self.verify_course_info_on_coupon_redeem_page(redeem_coupon_page) redeem_coupon_page.redeem_enrollment(target_page)