Page 1 of 1

To manipulate some values in my script

PostPosted: Fri Apr 05, 2013 1:22 pm
by hNoel
Hey eValid!

I have to manipulate some values in my script...I have to take one thing from "here" and put it in the page "there"...Any ideas?

Re: To manipulate some values in my script

PostPosted: Fri Apr 05, 2013 1:47 pm
by eValid
There are two main routes to doing this, each with their pros and cons.

Here are the suggestions:

(A) Create a local file that contains the string, which file is created locally with this command:

SaveRecord FILE ...

as described here:

http://www.e-Valid.com/Products/Documentation.9/Playback/saverecord.html

Then you read the saved value back into the script at a later time using the command:

!Filename FILE

as described here:

http://www.e-Valid.com/Products/Documentation.9/Generate/value.extract.html


(B) The other way is to use the DOM value manipulation commands described here:

http://www.e-Valid.com/Products/Documentation.9/DOM/value.manipulation.html

to (a) pick up the value of a DOM string (you have to know the sourceIndex of the element and the name of the property/attribute) with a

ValueGetElement wid name "frame"

command and then store it away in a target element and property/attribute name using a

ValuePutElement wid name "frame"

command.

You use IndexFindElement[Ex} to first find the extraction location and then again to find the insertion location.

________________________
eValid Support