code: def execute_async_script(self, script, *args):
          
          converted_args = list(args)
          if self.w3c:
              command = Command.W3C_EXECUTE_SCRIPT_ASYNC
          else:
              command = Command.EXECUTE_ASYNC_SCRIPT
  
          return self.execute(command, {
              'script': script,
              'args': converted_args})['value']
docs: Asynchronously Executes JavaScript in the current window/frame.
  
          :Args:
           - script: The JavaScript to execute.
           - \\*args: Any applicable arguments for your JavaScript.
  
          :Usage:
              ::
  
                  script = "var callback = arguments[arguments.length - 1]; " \\
                           "window.setTimeout(function(){ callback('timeout') }, 3000);"
                  driver.execute_async_script(script)