Dalek.DriverNative.Commands.Screenshot Class
Screenshot related methods
Item Index
Methods
_parseBrowserVersion
()
String
private
Return the formatted browser version
Returns:
Browser version
_parseDate
-
optional
Return the ISO 8601 formatted date
Parameters:
-
optionalObjectA javascript date object. If undefined, the current date is used.
Returns:
Date
_parseDatetime
-
optional
Return the ISO 8601 formatted datetime
Parameters:
-
optionalObjectA javascript date object. If undefined, the current date is used.
Returns:
Datetime
_parseOS
-
Pathname
Return the formatted os name
Parameters:
-
PathnameString
Returns:
Formatted pathname
_parseOS
()
String
private
Return the formatted os name
Returns:
OS name
_parseOSVersion
()
String
private
Return the formatted os version
Returns:
OS version
_parseViewport
()
String
private
Return the formatted viewport
Returns:
Viewport
_recursiveMakeDirSync
-
path
Recursige mkdir helper
Parameters:
-
pathStringPath to create
_screenshotCb
-
path -
pathname -
hash -
uuid -
result
Sends out an event with the results of the screenshot call
and stores the screenshot in the filesystem
Parameters:
-
pathStringRoot directory path
-
pathnameStringPathname of the screenshot path
-
hashStringUnique hash of that fn call
-
uuidStringUnique hash of that fn call
-
resultStringSerialized JSON result of the screenshot call
Returns:
promise Screenshot promise
screenshot
-
path -
pathname -
hash -
uuid
Makes an screenshot of the current page
Parameters:
-
pathStringRoot directory path
-
pathnameStringPathname of the screenshot path
-
hashStringUnique hash of that fn call
-
uuidStringUnique hash of that fn call
