Usage
Function CaptureBitmap(
Boolean MarkObject [Optional],
String SavePath [Optional],
Boolean Report [Optional]
)
Step
CaptureBitmap
False
C:bitmap.png
True
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);
Step
CaptureBitmap
True
Comment
Save bitmap to file and remove it from result report
Step
CaptureBitmap
True
C:bitmap.png
False

Comment
Capture and mark object