#NEWLINE# def execute_async_script( self , script , * args ) : #NEWLINE# #INDENT# "\n        Asynchronously Executes JavaScript in the current window/frame.\n\n        :Args:\n         - script: The JavaScript to execute.\n         - \\*args: Any applicable arguments for your JavaScript.\n\n        :Usage:\n            driver.execute_async_script('document.title')\n        " #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# converted_args = args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# converted_args = list ( args ) #NEWLINE# #UNINDENT# converted_args = list ( args ) #NEWLINE# return self . execute ( Command . EXECUTE_ASYNC_SCRIPT , { #NEWLINE# #INDENT# 'script' : script , #NEWLINE# 'args' : converted_args , #NEWLINE# #UNINDENT# } ) [ 'value' ]