code: def active_scan(zap_helper, url, scanners, recursive, context_name, user_name):
      
      console.info('Running an active scan...')
  
      with helpers.zap_error_handler():
          if scanners:
              zap_helper.set_enabled_scanners(scanners)
  
          zap_helper.run_active_scan(url, recursive, context_name, user_name)
docs: Run an Active Scan against a URL.
  
      The URL to be scanned must be in ZAP's site tree, i.e. it should have already
      been opened using the open-url command or found by running the spider command.