@step('I (.*) capturing of screenshots before and after each step$')
def configure_screenshots_for_all_steps(_step, action):
 action = action.strip()
 if (action == 'enable'):
  world.auto_capture_screenshots = True
 elif (action == 'disable'):
  world.auto_capture_screenshots = False
 else:
  raise ValueError('Parameter `action` should be one of "enable" or "disable".')

@ step ( 'I (.*) capturing of screenshots before and after each step$' ) def configure_screenshots_for_all_steps ( _step , action ) : action = action . strip ( ) if ( action == 'enable' ) : world . auto_capture_screenshots = True elif ( action == 'disable' ) : world . auto_capture_screenshots = False else : raise ValueError ( 'Parameter `action` should be one of "enable" or "disable".' )
a step to be used in * .