This chapter provides a complete listing and reference for the methods in the OpenScript Image based recording Class of the OpenScript Application Programming Interface (API).
The following section provides an alphabetical listing of the methods in the OpenScript Image based recording API.
The following table lists the Image based recording API methods in alphabetical order.
Table 13-1 List of Image Based Recording Methods
Method | Description |
---|---|
Identifies a target screen capture image by its filename, offset coordinates, and threshold. |
The following sections provide detailed reference information for each method in the Image based recording Module Application Programming Interface.
Identifies a target screen capture image by its filename, offset coordinates, and threshold.
The img.target method has the following command format(s):
img.target(imageName, threshold);
img.target(imageName, threshold, title);
img.target(imageName, offsetX, offsetY, threshold);
img.target(imageName, offsetX, offsetY, threshold, title);
a String specifying the target image name and location. Image files are recorded to the ImageLib
folder under the script's resources
folder. The image name can be specified using the {{@resourceFile(ImageLib/
filename
.png)}}
transform.
a value specifying the X-offset coordinate where to perform the image action within the screen capture boundaries. The upper left corner of the capture image is the 0 point.
a value specifying the Y-offset coordinate where to perform the image action within the screen capture boundaries. The upper left corner of the capture image is the 0 point.
a double value specifying a threshold of similarity to use when comparing the recorded screen capture image to the screen that appears during playback.
a String specifying the image title.
represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.