Method CaptureBitmap
Captures Application screenshot and reports to Test ResultsUsage
Function CaptureBitmap(
Boolean MarkObject [Optional],
String SavePath [Optional],
Boolean Report [Optional]
)
Parameters
MarkObject (optional)
Type: Boolean
Default value: False
Capture application screenshot and mark object location instead of capturing object screenshot
SavePath (optional)
Type: String
Default value: Nothing (Null)
Alternatively, save bitmap data to the given path
Report (optional)
Type: Boolean
Default value: True
Add this step to the Results
Returns
No return value
Example
VBScript
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap
' Mark object in bitmap
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True
' Save bitmap to the file
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True, "C:bitmap.png"
' Do not add bitmap to result report
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True, "C:bitmap.png", False
JavaScript
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap();
// Mark object in bitmap
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true);
// Save bitmap to the file
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true, "C:bitmap.png");
// Do not add bitmap to result report
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true, "C:bitmap.png", false);
Comment
Capture and mark object