Dalek.DriverNative.Commands.Execute Class
Execute related methods
Item Index
Methods
Methods
_setExecuteCb
(
Object
private
-
script -
args -
hash -
result
Sends out an event with the results of the execute call
Parameters:
-
scriptFunctionScript to execute
-
argsArrayArguments to pass to the function
-
hashStringUnique hash of that fn call
-
resultStringSerialized JSON with the results of the call
Returns:
Object:
promise Exists promise
_setExecuteCb
(
Object
private
-
script -
args -
timeout -
hash -
data
Sends out an event with the results of the waitFor call
Parameters:
-
scriptFunctionScript to execute
-
argsArrayArguments to pass to the function
-
timeoutIntegerTimeout of the function
-
hashStringUnique hash of that fn call
-
dataStringSerialized JSON with the reuslts of the toFrame call
Returns:
Object:
Promise
execute
(
chainable
-
script -
args -
hash
Executes a JavaScript function
Parameters:
-
scriptFunctionScript to execute
-
argsArrayArguments to pass to the function
-
hashStringUnique hash of that fn call
execute
(
chainable
-
script -
args -
timeout -
hash
Executes a JavaScript function until the timeout rans out or the function returns true
Parameters:
-
scriptFunctionScript to execute
-
argsArrayArguments to pass to the function
-
timeoutIntegerTimeout of the function
-
hashStringUnique hash of that fn call
