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

General discussion about eValid, its characteristis and applications.

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

Postby MHellen » Mon Apr 22, 2019 8:02 am

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
MHellen
 
Posts: 1
Joined: Mon Apr 22, 2019 7:58 am

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

Postby eValid » Tue Apr 23, 2019 8:42 am

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


Return to General Solution Topics

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