Dalek.DriverNative.Commands.Screenshot Class
Screenshot related methods
Item Index
Methods
_parseBrowserVersion
()
String
private
Return the formatted browser version
Returns:
Browser version
_parseDate
()
String
private
Return the formatted date
Returns:
Date
_parseDatetime
()
String
private
Return the formatted datetime
Returns:
Datetime
_parseOS
-
Pathname
Return the formatted os name
Parameters:
-
Pathname
String
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:
-
path
StringPath 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:
-
path
StringRoot directory path
-
pathname
StringPathname of the screenshot path
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call
-
result
StringSerialized JSON result of the screenshot call
Returns:
promise Screenshot promise
screenshot
-
path
-
pathname
-
hash
-
uuid
Makes an screenshot of the current page
Parameters:
-
path
StringRoot directory path
-
pathname
StringPathname of the screenshot path
-
hash
StringUnique hash of that fn call
-
uuid
StringUnique hash of that fn call