Run 2 Loops from 2 data sources

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
foamnone
Posts: 7
Joined: Wed Nov 16, 2016 4:17 am

Run 2 Loops from 2 data sources

Post by foamnone » Sun Jan 01, 2017 7:14 pm

Version 9.0.3 Firefox 48.0 Win10-x64.

I have this set up to open the source code of a page z0 from a dropdown. The drop down has z0-z11. I need the same 28 items replaced per page (SET !DATASOURCE newpageurl.csv) saved and then start over by going to z1 and having the same 28 items replaced.

The loop open new tabs, how do I open 1 tab, run all items in .csv file (1-28)?
How could I choose the next z on the drop down without using a data source?



VERSION BUILD=9030808 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=BUTTON FORM=ID:bpage ATTR=TXT:Edit<SP>WebRoot
TAG POS=1 TYPE=DIV ATTR=ID:z0
TAG POS=1 TYPE=BUTTON ATTR=TXT:Edit<SP>HTML<SP>file
TAB T=2
WAIT SECONDS=1
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV>FORM>DIV:nth-of-type(2)>DIV>TABLE>TBODY>TR>TD>DIV>BUTTON" BUTTON=0
SET !DATASOURCE newpageurl.csv
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=LI ATTR=TXT:Replace...
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:txFind CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:txRepl CONTENT={{!COL2}}
TAG POS=1 TYPE=BUTTON ATTR=ID:bnReplaceAll
! :shock: I need it to loop here 28 times then go to the next step
TAG POS=1 TYPE=BUTTON ATTR=TXT:Close
TAG POS=1 TYPE=BUTTON FORM=ID:epage ATTR=ID:bnSaveAs
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=ID:bnPublish
TAG POS=1 TYPE=BUTTON FORM=NAME:NoFormName ATTR=ID:bnYes
TAG POS=2 TYPE=BUTTON ATTR=TXT:Close<SP>Editor
TAB T=1
Post Reply