(self, script, *args)
return self.execute(Command.EXECUTE_SCRIPT,
            {'script': script, 'args':converted_args})['value']
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('document.title')
Synchronously Executes JavaScript in the current window/frame.
Synchronously Executes JavaScript in the current window / frame .
def execute_script(self, script, *args):
        """
        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('document.title')
        """
        if len(args) == 1:
            converted_args = args[0]
        else:
            converted_args = list(args)
        converted_args = list(args)
        return self.execute(Command.EXECUTE_SCRIPT,
            {'script': script, 'args':converted_args})['value']
def execute_script ( self , script , * args ) : if len ( args ) == 1 : converted_args = args [ 0 ] else : converted_args = list ( args ) converted_args = list ( args ) return self . execute ( Command . EXECUTE_SCRIPT , { 'script' : script , 'args' : converted_args } ) [ 'value' ]