Attach with Gmail

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
LAPIII
Posts: 254
Joined: Tue Oct 07, 2008 7:24 pm

Re: Attach with Gmail

Post by LAPIII » Mon Feb 15, 2010 5:00 pm

I've found the 'Attach a file' coordinates using DS! Now I just need to know how to make sure to click the button in the correct window:
IFU.PNG
IFU.PNG (4.63 KiB) Viewed 2696 times
and if IMacros will wait while I select a file and click OK.

I suggest that new versions of the iMacros browser feature the sidebar to be more expandable, like with Firefox addon, and show numbered lines while recording!
LAPIII
Posts: 254
Joined: Tue Oct 07, 2008 7:24 pm

Re: Attach with Gmail

Post by LAPIII » Wed Feb 17, 2010 10:29 pm

I recorded clicking in the iMacros File Upload box and got:

Code: Select all

ONERRORDIALOG BUTTON= CONTINUE=YES 
I couldn't record selecting a file and now I need help on what to do here. Is this the solution:

Code: Select all

SET !DATASOURCE iMacros_Uploader.csv
Can I also copy the coresponding path name into the Subject field in every loop?
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Attach with Gmail

Post by Daniel, Tech Support » Fri Feb 19, 2010 10:14 am

Hello,
Can I also copy the coresponding path name into the Subject field in every loop?
Do you mean copying "iMacros_Uploader.csv" into the subject field?
Daniel, iOpus Support
LAPIII
Posts: 254
Joined: Tue Oct 07, 2008 7:24 pm

Re: Attach with Gmail

Post by LAPIII » Fri Feb 19, 2010 8:47 pm

  1. LAPIII wrote: I couldn't record selecting a file and now I need help on what to do here. Is this the solution:

    Code: Select all

    SET !DATASOURCE iMacros_Uploader.csv
    
  2. LAPIII wrote: Can I also copy the coresponding path name into the Subject field in every loop?
    No, I meant those in the CSV file, i.e.:

    "C:\Users\Advice Pro\Downloads\High_Availability_Doesnt_Need_to_be_Expensive.wmv"

    AND

    "C:\Users\Advice Pro\Downloads\5rulesforvirtualization.pdf"
  3. How do I report posts? The third one here needs to be deleted!
giantmonster
Posts: 2
Joined: Mon Feb 22, 2010 7:02 am

Re: Attach with Gmail

Post by giantmonster » Mon Feb 22, 2010 7:07 am

Thanks for the codings... appreciate it ....
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Attach with Gmail

Post by Daniel, Tech Support » Tue Feb 23, 2010 10:04 am

Hello,
I couldn't record selecting a file and now I need help on what to do here. Is this the solution:

SET !DATASOURCE iMacros_Uploader.csv
Well, I guess if the files are to be dynamic, then yes, taking them from a CSV is a good idea.
No, I meant those in the CSV file, i.e.:

"C:\Users\Advice Pro\Downloads\High_Availability_Doesnt_Need_to_be_Expensive.wmv"

AND

"C:\Users\Advice Pro\Downloads\5rulesforvirtualization.pdf"
Yes, of course. Apart from GMail related difficulties there is nothing against it.
# How do I report posts? The third one here needs to be deleted!
Thank you very much, I deleted it!!
Daniel, iOpus Support
LAPIII
Posts: 254
Joined: Tue Oct 07, 2008 7:24 pm

Re: Attach with Gmail

Post by LAPIII » Tue Feb 23, 2010 7:45 pm

This is my code for the Attach button and what to do:

Code: Select all

DS CMD=CLICK X=270 Y=250    
SET !DATASOURCE iMacros_Uploader.csv
SET !DATASOURCE_COLUMNS 1
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=INPUT:FILE FORM=NAME:frm_upload ATTR=NAME:uploaded_file CONTENT={{!COL1}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:frm_upload ATTR=NAME:S1 CONTENT=Done!   
But I'll get the following error unless I select the correct button on the correct upload window (This doesn't work ONERRORDIALOG BUTTON= CONTINUE=YES)

Code: Select all

Error in Line 12:

TYPE=INPUT:FILE FORM=NAME:frm_upload ATTR=NAME:uploaded_file 
 (Error code: -301)
Could you please answer this question? I think Marcia gave up on me.
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Re: Attach with Gmail

Post by Daniel, Tech Support » Mon Mar 01, 2010 11:54 am

Hello,

Sorry, I am confused now... Are you getting a popup window when you click upload or do you have a classical upload control on page? May be a screenshot would help...

By the way, have you seen this wiki articles:
http://wiki.imacros.net/Web_Page_Dialogs
http://wiki.imacros.net/ONWEBPAGEDIALOG
http://wiki.imacros.net/ONDOWNLOAD
and this one(!):
http://forum.imacros.net/viewtopic.php?f=15&t=2542
Marcia is busy with other important work, so I will be helping you to find an answer to your questions.

Best regards
Daniel, iOpus Support
Post Reply