docs: def handle(self, *args, **options):
          """
          Run the specified Selenium test(s) the indicated number of times in
          the specified browser.
          """
          browser_name = options['browser_name']
          count = options['count']
          if len(args) > 0:
              tests = list(args)
          else:
              tests = settings.SELENIUM_DEFAULT_TESTS
  
          # Kill any orphaned chromedriver processes
          process = Popen(['killall', 'chromedriver'],
                          stderr=open(os.devnull, 'w'))
          process.wait()
  
          # Clear any old log and screenshots
          self.clean()
  
          docker = None
          sc_process = None
          selenium_process = None
          if options['docker']:
              if browser_name not in ['chrome', 'firefox']:
                  self.stdout.write('Only chrome and firefox can currently be run in a Docker container')
                  return
              docker = DockerSelenium(browser=browser_name,
                                      port=settings.SELENIUM_DOCKER_PORT,
                                      tag=settings.SELENIUM_DOCKER_TAG,
                                      debug=settings.SELENIUM_DOCKER_DEBUG)
          elif 'platform' in options and settings.SELENIUM_SAUCE_CONNECT_PATH:
              running, sc_process = self.verify_sauce_connect_is_running(options)
              if not running:
                  return
          elif browser_name in ['opera', 'safari']:
              running, selenium_process = self.verify_selenium_server_is_running()
              if not running:
                  return
          elif browser_name in ['ipad', 'iphone']:
              if not self.verify_appium_is_running():
                  return
  
          # Make it so django-nose won't have nosetests choke on our parameters
          TestRunner = get_runner(django_settings)
          if hasattr(TestRunner, 'django_opts'):
              for option in OPTIONS:
                  TestRunner.django_opts.extend(option[0])
  
          # Configure and run the tests
          try:
              if docker:
                  docker.start()
                  options['command_executor'] = docker.command_executor()
              self.update_environment(options)
              self.run_tests(tests, browser_name, count)
          finally:
              # Stop the Selenium Docker container, if running
              if docker and docker.container_id:
                  docker.stop()
  
          # Kill Sauce Connect, if running
          if sc_process:
              sc_process.kill()
  
          # Kill the Selenium standalone server, if running
          if selenium_process:
              selenium_process.kill()