Verifies the presence of a specified image inside an HTML page.
int web_image_check( const char *CheckName, <List of Attributes>, <"Alt=alt"|| "Src=src">, LAST);
int object.image_check( String CheckName, String  argumentList );
An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.
The name of the image check, as it appears in the test tree.
List of Attributes
Frame: Defines the scope of the search in the case of multiple frames.
Options are similar to attributes, but some of them allow only a pre–defined set of values. All other values are illegal.
The allowed options are: expect, matchcase, repeat, report, and onfailure. See Supported Options below.
Checks for the ALT tag of the image. Empty Alt strings are illegal.
Checks for the SRC tag of the image. Empty Src strings are illegal.
A marker that indicates the end of the field list.
This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.
The following argument(s) can be parameterized using standard parameterization: List of Attributes, Alt, Src
Defines that the check is successful if the script:
Finds the specified search criteria.
– or –
Does not find the specified search criteria.
For example, you may want to check that a specific error message does not appear on your web page.
Indicates that the check is successful if the script finds the specified search criteria.
Indicates that the check is successful if the scriptdoes not find the specified search criteria.
The matchcase option defines whether the search is case–sensitive or not.
Defines whether the search should be continued after the first appearance of the search string is located. This option is useful when searching through a web page that may have multiple occurrences of the search string.
Indicates that the search should be continued after the first appearance of the search string is located.
Indicates that the search should not be continued after the first appearance of the search string is located.
Defines under what conditions VuGen displays the results of the checks in the Result Summary Report.
Displays check results only if the check succeeds.
Displays check results only if the check fails.
Displays all check results irrespective of the outcome of the check.
The default is always.
Determines whether the script instance should abort if the check fails.
Indicates that the script should abort if the check fails, regardless of the error–handling method set in the run–time settings.
If Onfailure=abort is not specified, then the state of Continue on Error will determine what will happen in the event of a web_find step failing to find a text. See Error Handling for more information.
The web_image_check function verifies the presence of a specified image inside an HTML page.
Either Alt or Src, or both, must be in the argument list. If both are passed, the check passes if both match a single image element.
This function is only supported for HTML–based scripts.