def i_enter_the_coupon_code(step, code): world.wait_for_element_by_css('.card_number') world.browser.find_by_css('input.coupon_code').first.fill(code) world.browser.find_by_css('div.coupon .check').first.click() world.wait_for_ajax()
def when_i_click_the_schedule_option(step, option): xpath = ".//table[@id='edit_schedule']//label[text()=\"%s\"]" % option world.browser.find_by_xpath(xpath).first.click() world.wait_for_ajax()