[HELP] Upload File INSTAGRAM

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 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.

[HELP] Upload File INSTAGRAM

by batangarau on Mon Nov 05, 2018 8:51 pm

Hi

Im using Imacro 8.9.7 on Firefox 56.0 (32-bit)

I'm writing a script to automatically upload image on instagram
Input sucses but File Upload Windows never close, that make it firefox freeze when i LOOP

VERSION BUILD=8970419 RECORDER=FX
TAB T=1
URL GOTO=https://www.instagram.com/
TAG POS=1 TYPE=SPAN ATTR=CLASS:glyphsSpriteNew_post__outline__24__grey_9<SP>u-__7&&ARIA-LABEL:New<SP>Post&&TXT:
TAG POS=5 TYPE=INPUT:FILE FORM=ACTION:https://www.instagram.com/ ATTR=* CONTENT=C:\Users\daniu\Desktop\Download\1.jpg


Please help me to close File Upload Windows

Thx
Regard
batangarau
 
Posts: 1
Joined: Mon Nov 05, 2018 8:35 pm

Re: [HELP] Upload File INSTAGRAM

by chivracq on Tue Nov 06, 2018 11:47 am

batangarau wrote:Hi

Im using
Code: Select all
Imacro 8.9.7 on Firefox 56.0 (32-bit)

I'm writing a script to automatically upload image on instagram
Input sucses but File Upload Windows never close, that make it firefox freeze when i LOOP

Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
URL GOTO=https://www.instagram.com/
TAG POS=1 TYPE=SPAN ATTR=CLASS:glyphsSpriteNew_post__outline__24__grey_9<SP>u-__7&&ARIA-LABEL:New<SP>Post&&TXT:
TAG POS=5 TYPE=INPUT:FILE FORM=ACTION:https://www.instagram.com/ ATTR=* CONTENT=C:\Users\daniu\Desktop\Download\1.jpg

Please help me to close File Upload Windows

Thx
Regard

FCIM..., OS is missing from your FCI... (Read my Sig...)

[Correct Spelling is "iMacros" btw, you manage to squeeze 3 Typos in it,, oops...! :shock: ]

Hum, OK, I don't have any 'Instagram' Account, so I can't give a try myself, and I usually "don't like too much" to help for all those Social Sites, although I can see the use for a Script for uploading several Photos on this Site... :wink:

A few "Thoughts" and a few "Things" you can try (to play with) that could play a Role...:

1- If the Upload Popup is not closing from itself, the most recurring "Cause" with iMacros Scripts and Download/Upload Popups is that 2 Statements are actually triggering that Popup... I don't know the Site and how it "reacts", so I don't know what the first 'TAG' Statement (on the 'SPAN') is doing and if it is really needed, but you can try commenting it out to disable it.

2- If your Script runs OK if you only play it once and the "Pb" occurs only when looping it, you can try adding some 'WAIT' Statement after the Upload to allow for some/more time for the Photo to upload (and the Popup to close)...

3- I don't know the Site but I'm a bit "surprised" by the 'POS=5', if 'n=5' already, you can try playing with 'POS=n' with 'n=[1-4]' to see what happens with lower Values for the 'POS=n'.

4- You could try adding (manually) some 'ONDIALOG' Statement... (before the 'TAG INPUT' Statement), although it might dismiss directly the Upload Popup without even filling it, oops...! But that might help if the Popup is triggered twice...

5- You could add some 'TAG' on some HTML Element that might appear after some Photo has (successfully) been uploaded (+ can play with '!TIMEOUT_STEP') to force a bit the Script to wait for the Upload to finish..., before going for the next Loop...

6- You could try the 'EVENT' Mode if it makes a Difference and maybe works better...
Last edited by chivracq on Wed Nov 07, 2018 1:06 am, edited 1 time in total.
- (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: 7714
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: [HELP] Upload File INSTAGRAM

by access2vivek on Wed Nov 07, 2018 12:33 am

batangarau wrote:Hi
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
URL GOTO=https://www.instagram.com/
TAG POS=1 TYPE=SPAN ATTR=CLASS:glyphsSpriteNew_post__outline__24__grey_9<SP>u-__7&&ARIA-LABEL:New<SP>Post&&TXT:
TAG POS=5 TYPE=INPUT:FILE FORM=ACTION:https://www.instagram.com/ ATTR=* CONTENT=C:\Users\daniu\Desktop\Download\1.jpg



I would love to help you in this problem of yours, but I cannot find the New Post button with the configuration that you sent. Are you using another plugin that opens a mobile version of the website? Since Instagram only provides the upload option to mobile versions of the website, I am assuming there is something that is left out. If you share that, I can try the script and help you out :)
access2vivek
 
Posts: 35
Joined: Wed Dec 20, 2017 3:00 am


Return to iMacros for Firefox

Who is online

Users browsing this forum: No registered users and 14 guests

-->