The Value Of "sourceIndex" And "elementValue"

Applying eValid to AJAX applications that require advanced DOM-based methods.

The Value Of "sourceIndex" And "elementValue"

Postby kkyv » Wed Jul 07, 2010 2:40 pm

Is there some way to use the value of "sourceIndex" and "elementValue" in a script once you have found them?
kkyv
 
Posts: 3
Joined: Wed Dec 09, 2009 3:10 pm

Re: The Value Of "sourceIndex" And "elementValue"

Postby eValid » Mon Jul 12, 2010 3:42 pm

kkyv wrote:Is there some way to use the value of "sourceIndex" and "elementValue" in a script once you have found them?

You're referring to the internal values of the current sourceIndex and the current elementValue that are the object of such eValid commands as IndexFindElement or ValueGet.

Both of these values are available in Reserved Variables section. They are called "Reserved" because you, as an eValid user, can't change their names.

The values that can appear in a script command are "$_SourceIndex" and "$_ElementValue" respectively.

Note that these are active at all times; that is, even though they may change during the course of a playback when eValid executes some of the structural testing commands, they are available with their "just found" values in [for example] the very next command executed.

The eValid Team
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons