Utils Class
Utils for WebDriver tools
Constructor
Item Index
Methods
_requestJSON
(
private
-
method
-
path
-
[body]
Performs a context dependent JSON request for the current session. The result is parsed for errors.
Returns:
:
loadFileContent
(
private
-
path
Loads contents of a file
Parameters:
-
path
StringPath to file to load
map
(
-
list
-
fn
Maps values to some other values synchronously and asynchronously
resolve
(
-
value
Resolves a value according to run-mode
Parameters:
-
value
Value to resolve
sleep
(
-
delay
Sleep for a set time
Parameters:
-
delay
IntNumber of ms to wait
when
(
-
value
-
fn
Evaluates the value according to the execution mode the driver is in
Parameters:
-
value
Value that needs to be evaluated. This could possibly be the value itself or a promise.
-
fn
FunctionFunction to be called with the evaluated value