How to pickup text from an item

Discussion of the technology underlying the eValid solution.

How to pickup text from an item

Postby TrevorS » Mon Nov 18, 2019 9:16 am

Hi.

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

Also, any reference material would be helpful.

Thanks
TrevorS
 
Posts: 1
Joined: Mon Nov 18, 2019 9:14 am

Re: How to pickup text from an item

Postby eValid » Tue Nov 19, 2019 9:09 am

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
eValid
 
Posts: 1977
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Technology

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