code: def connect_wrapper(context_or_world):
      
      # Create driver if it is not already created
      if context_or_world.driver_wrapper.driver:
          context_or_world.driver = context_or_world.driver_wrapper.driver
      else:
          context_or_world.driver = context_or_world.driver_wrapper.connect()
  
      # Copy app_strings object
      context_or_world.app_strings = context_or_world.driver_wrapper.app_strings
docs: Connect driver in behave or lettuce tests
  
      :param context_or_world: behave context or lettuce world