Page 1 of 1

How to pickup text from an item

PostPosted: Mon Nov 18, 2019 9:16 am
by TrevorS
Hi.

How do you use eValid to retrieve the text from an item?

Also, any reference material would be helpful.

Thanks

Re: How to pickup text from an item

PostPosted: Tue Nov 19, 2019 9:09 am
by eValid
TrevorS wrote:Hi.

How do you use eValid to retrieve the text from an item?

Also, any reference material would be helpful.

Thanks


Great question TrevorS.

There is a specific command in eValid that does this:

http://e-valid.com/Products/Documentati ... ation.html

Note that the extracted string (in the DOM, everything is a string) is stored in the internal variable "elementValue", which persists in your test session, and can be used in subsequent commands if you wish.

You should know that this extraction could be invalid in case the page's DOM is being modified dynamically, e.g. by an AJAX action.

So, caution is advised.

If you want to be certain of constancy, you may wish to consider the following:

...
ValueGetElement...
...other commands...
ValuePutElement...
...

In your script, because this will insert the original value back where eValid got it.

Assuming no other ValueGetElement commands or changes to the value of sourceIndex (another hidden value) have not changed.

Oh, just so you know, you can also SET the contents of the elementValue string using the command:

ValueSet...

So, again, caution is advised.


-- eValid Support