CSV Data Filling Question

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
kstufff
Posts: 6
Joined: Mon Jan 05, 2009 1:11 am

CSV Data Filling Question

Post by kstufff » Tue Jan 20, 2009 10:59 pm

Ok. Is there anyway I can have a looped script that will submit data to a form lets say 10 times from a .CSV file, then a new command happens after the 10th form submit. So the loop would be data from lines 1-10 form submits, command, data from 11-20 form submits, command, etc.

Thanks!
dharmendra2000
Posts: 214
Joined: Fri Jul 04, 2008 1:28 pm
Location: Ahmedabad
Contact:

Re: CSV Data Filling Question

Post by dharmendra2000 » Wed Jan 21, 2009 4:37 am

You can use Java Script for Looping

MyScript.js

Code: Select all

for(x=1;x<10;x++)
{
iimSet("xloop",x)
iimPlay("MyMacro.iim")
}
MyMacro.iim

Code: Select all

VERSION BUILD=6111213 RECORDER=FX
TAB T=1
SET !DATASOURCE MyCSVfile.csv
SET !DATASOURCE_LINE {{xloop}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
Here you can update your code as per your requirement, in above case you can replace code(TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT=) with your code.

If more details are required, get back :)
Post Reply