Page 1 of 1

Find a piece of text in one location and place it an another

PostPosted: Mon Apr 22, 2019 8:02 am
by MHellen
Hi.

Can eValid retrieve a piece of text from one location on a web page and insert it into another location?

How do you do that.

Thanks

Re: Find a piece of text in one location and place it an ano

PostPosted: Tue Apr 23, 2019 8:42 am
by eValid
MHellen wrote:Hi.

Can eValid retrieve a piece of text from one location on a web page and insert it into another location?

How do you do that.

Thanks


Thanks for posting MHellen.

First you have to find the index of the first item, probably using an IndexFindElement or IndexFindElementEx command.

Knowing that you have selected the right "SourceIndex" you can use the command: ValueGet wid name1 "frame-path" to grab the string associated with the property "name2" in that element.

Then you move to a different index (using the same search commands as before but with different parameters) and use the command: ValuePut wid name2 "frame-path" to insert the value you extracted from the first ValueGet, but this time you stuff into the property "name2".


-- eValid Support