def after_step(context, step): # Take a screenshot if the step failed if step.status == "failed": file_path = '%s_%s_%s.png' % (snakify(context.scenario), snakify(step.name), uuid.uuid4()) context.browser.driver.save_screenshot(file_path)
def after_step(context, step): # Take a screenshot if the step failed if step.status == "failed": file_path = '%s_%s.png' % (snakify(context.scenario), snakify( step.name)) context.browser.driver.save_screenshot(file_path)
def after_step(context, step): if step.status == "failed": file_path = '%s_%s.png' % (snakify(context.scenario), snakify(step.name)) context.browser.driver.save_screenshot(file_path)
def snake(value): return snakify(value)