code: def execute_script(self, script, *args):
          
          converted_args = list(args)
          command = None
          if self.w3c:
              command = Command.W3C_EXECUTE_SCRIPT
          else:
              command = Command.EXECUTE_SCRIPT
  
          return self.execute(command, {
              'script': script,
              'args': converted_args})['value']
docs: Synchronously Executes JavaScript in the current window/frame.
  
          :Args:
           - script: The JavaScript to execute.
           - \\*args: Any applicable arguments for your JavaScript.
  
          :Usage:
              ::
  
                  driver.execute_script('return document.title;')