How to upload images to ebay Kleinanzeigen (and Kijiji.ca)

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.

Moderator: iMacros Moderators

How to upload images to ebay Kleinanzeigen (and Kijiji.ca)

by Tom, Tech Support on Wed Aug 06, 2014 6:50 am

This post applies to uploading images when creating a new ad on the German ebay classifieds site kleinanzeigen.ebay.de using iMacros for IE freeware or Standard/Enterprise editions.

kleinanzeigen.png


Even though recording the steps to upload an image works, the macro needs to be tweaked slightly for it to play back successfully.

After recording a click on the blue "Bilder hinzufügen" button to select and upload the image, the following commands are recorded (in this example we are selected the imacros-keyword-assertion-text.png image file located in the iMacros\DataSources folder):

Code: Select all
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_18ulol9fp1ee918r1173inl1pd35 CONTENT=C:\fakepath\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles

To make this work, we need to move the CONTENT parameter to the second TAG command and fix the path, then remove the first TAG command:

Code: Select all
TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png

This command will now successfully upload the image each time it is executed.

kleinanzeigen image uploaded.png


The same method can be used to upload images to Kijiji.ca. Recording the image upload on this site results in the following:

Code: Select all
TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_1abj9ajgn13e114jfjofu151nlg3 CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton

This should be changed to:

Code: Select all
TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
Last edited by Tom, Tech Support on Mon Feb 15, 2016 1:23 pm, edited 1 time in total.
Reason: Updated to include Kijiji.ca
Regards,

Tom, iMacros Support
Tom, Tech Support
 
Posts: 3300
Joined: Mon May 31, 2010 9:59 am

Return to How-To's and useful iMacros: All other topics

Who is online

Users browsing this forum: No registered users and 1 guest

-->