|
Introduction
The
ValidateSelectedObjProperty
command provides a powerful and general way to validate
selected features of a web page using the contents of the DOM as revealed by the
eValid
PageMap feature.
See the worked example in
Validating Selected Document Object Properties.
There are three variations of this command, which take into account three ways the command works, depending on how specific you wish the object validation to be.
This is the normal form of the command. On playback eValid tries to validate that the object found at idx in the page has the required name present and and that name has the required value.
If that information is confirmed the test PASSes. Otherwise, an ERROR results.
Please note that eValid Adaptive Playback feature is NOT available for this variant of this command because there is no information on how to accept an alternative object on the page.
In this form of the command, eValid uses the ID tag of the object to guide adaptive playback if the required properties are not present in the original location.
On playback eValid tries to validate that the object found at idx in the page has the required name present and that name has the required value. If that information is confirmed the test PASSes.
If it does not, and the eValid Adaptive Playback feature is in effect, eValid searches for an object where ID=id_value at a nearby location on the page, varying the idx in its search for an object that matches. If an object found at a new idx in the page has the required name present, and that name has the required value, the test PASSes. Otherwise, an ERROR results.
In this form of the command, eValid uses the id_name feature of the object to guide adaptive playback if the required properties are not present in the original location.
On playback eValid tries to validate that the object found at idx in the page has the required name present and that name has the required value. If that information is confirmed the test PASSes.
If it does not, and the eValid Adaptive Playback feature is in effect, eValid searches for an object where there is an id_name=id_value at a nearby location on the page, varying the idx in its search for an object that matches. If an object found at a new idx in the page has the required name present, and that name has the required value, the test PASSes. Otherwise, an ERROR results.