Please Help Imacros Not Putting Info From CSV File.

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Please Help Imacros Not Putting Info From CSV File.

by Bustersback on Sun Apr 02, 2017 3:32 am

Hello all and thanks in advance for helping me out, below You will see my code from the imacros that seems to be working just fine except it is NOT putting the info from the .csv or .txt file into the last form correctly. It does fill out the info but with the info that I recorded the first time so another words it is not looping thru the data source file and grabbing the proper info. If anyone can help me id sure appreciate it.


VERSION BUILD=11.5.499.3066
TAB T=1
TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
URL GOTO=https://www.thumbtack.com/welcome/for/plumbing/services?chooser=1
'
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Drain<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox6 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox7 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox8 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox9 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox10 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox11 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox12 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox13 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox14 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox15 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox16 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox17 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox18 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox19 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox20 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox21 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Gas<SP>Line<SP>Installation
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox22 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Gas<SP>Line<SP>Installation
TAG POS=1 TYPE=LABEL ATTR=TXT:Emergency<SP>Plumbing
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox23 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Emergency<SP>Plumbing
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Next
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox24 CONTENT=YES
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Next

TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
TAG POS=6 TYPE=DIV ATTR=TXT:Plumbing<SP>Inspection
TAG POS=2 TYPE=BUTTON:SUBMIT ATTR=TXT:Next
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox52 CONTENT=YES
TAG POS=2 TYPE=BUTTON:SUBMIT ATTR=TXT:Next


TAB CLOSEALLOTHERS
SET !DATASOURCE "Accountsplumbing.txt"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=LABEL ATTR=TXT:I<SP>travel<SP>to<SP>my<SP>customers
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:zip CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox3 CONTENT=YES
'
TAG POS=3 TYPE=BUTTON:SUBMIT ATTR=TXT:Next

SET !DATASOURCE "Accountsplumbing.txt"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}

TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:firstName CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:lastName CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:EMAIL ATTR=NAME:email CONTENT={{!COL8}}
TAG POS=1 TYPE=INPUT:TEL ATTR=NAME:phone CONTENT={{!COL9}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:password CONTENT={{!COL10}}
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(3)>DIV:nth-of-type(5)>FORM>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV:nth-of-type(9)>aura-select>DIV>DIV>SPAN>svg-icon>svg"
TAG POS=1 TYPE=LI ATTR=TXT:Social<SP>media<SP>(e.g.<SP>Facebook,<SP>Twitter,<SP>LinkedIn)
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Sign<SP>Up

TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>Out
Bustersback
 
Posts: 1
Joined: Sun Apr 02, 2017 3:24 am

Re: Please Help Imacros Not Putting Info From CSV File.

by chivracq on Sun Apr 02, 2017 10:51 pm

Bustersback wrote:Hello all and thanks in advance for helping me out, below You will see my code from the imacros that seems to be working just fine except it is NOT putting the info from the .csv or .txt file into the last form correctly. It does fill out the info but with the info that I recorded the first time so another words it is not looping thru the data source file and grabbing the proper info. If anyone can help me id sure appreciate it.

Code: Select all
VERSION BUILD=11.5.499.3066
TAB T=1
TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
URL GOTO=https://www.thumbtack.com/welcome/for/plumbing/services?chooser=1
'
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Drain<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox6 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox7 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox8 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox9 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox10 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Plumbing<SP>Pipe<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox11 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox12 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox13 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Septic<SP>System<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox14 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox15 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Heater<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox16 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox17 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Toilet<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox18 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sink<SP>or<SP>Faucet<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Repair
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox19 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Shower<SP>and<SP>Bathtub<SP>Repair
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox20 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Water<SP>Treatment<SP>Repair<SP>or<SP>Maintenance
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox21 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Sump<SP>Pump<SP>Installation<SP>or<SP>Replacement
TAG POS=1 TYPE=LABEL ATTR=TXT:Gas<SP>Line<SP>Installation
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox22 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Gas<SP>Line<SP>Installation
TAG POS=1 TYPE=LABEL ATTR=TXT:Emergency<SP>Plumbing
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox23 CONTENT=YES
TAG POS=1 TYPE=LABEL ATTR=TXT:Emergency<SP>Plumbing
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Next
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox24 CONTENT=YES
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Next

TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
TAG POS=6 TYPE=DIV ATTR=TXT:Plumbing<SP>Inspection
TAG POS=2 TYPE=BUTTON:SUBMIT ATTR=TXT:Next
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox52 CONTENT=YES
TAG POS=2 TYPE=BUTTON:SUBMIT ATTR=TXT:Next


TAB CLOSEALLOTHERS
SET !DATASOURCE "Accountsplumbing.txt"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=LABEL ATTR=TXT:I<SP>travel<SP>to<SP>my<SP>customers
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:zip CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=ID:inputCheckbox3 CONTENT=YES
'
TAG POS=3 TYPE=BUTTON:SUBMIT ATTR=TXT:Next

SET !DATASOURCE "Accountsplumbing.txt"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}

TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:firstName CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:lastName CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:EMAIL ATTR=NAME:email CONTENT={{!COL8}}
TAG POS=1 TYPE=INPUT:TEL ATTR=NAME:phone CONTENT={{!COL9}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:password CONTENT={{!COL10}}
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(3)>DIV:nth-of-type(5)>FORM>DIV:nth-of-type(2)>DIV>DIV>DIV>DIV:nth-of-type(9)>aura-select>DIV>DIV>SPAN>svg-icon>svg"
TAG POS=1 TYPE=LI ATTR=TXT:Social<SP>media<SP>(e.g.<SP>Facebook,<SP>Twitter,<SP>LinkedIn)
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Sign<SP>Up

TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
TAG POS=1 TYPE=A ATTR=TXT:Log<SP>Out

Oh, sorry, I'm completely allergic to that dramatic "Please Help" in your Thread Title, this is a Technical Forum, we don't care about "Please Help", (Advanced) Users checking Threads on the Forum are here to help anyway, "Please Help" works "repulsive"..., remove that part in your Thread Title for me to have a look, hum, and "Imacros"/"iMacros" as well is not really needed (not correctly spelt btw ah-ah...!), all Threads on this Forum are about iMacros toch...!?, so it doesn't give any extra Info about your Pb I would think... :idea:

+ You should mention your FCI very clearly:
=> iMB v11.5, Which Browser...? (iMB...?), OS...?

From a quick look, I noticed that you were declaring twice '!DATASOURCE' and '!LOOP', this is not correct...

Hum..., and your Post would be a bit easier to read if you could use the ]CODE[ Meta-Tags like I did in my Quote... :idea:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to General Support & Discussions

Who is online

Users browsing this forum: Bing [Bot] and 15 guests

-->