Multiple images are uploaded in one item

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
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Multiple images are uploaded in one item

Post by RealCasi » Mon Aug 05, 2019 5:30 pm

Dear forum members,

I have a problem with picture upload on "Amazon Custom":
- On one page you can/must upload different pictures. See screenshot.
- iMacro records always the same line "TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\xxxxx" - see code snippet
- Behaviour when playing the macro: the first picture gets uploaded again and again, all the other pictures don't get uploaded.

Ok, it's always the same line, therefore always the same picture. But how do I adress the upload buttons (German: "Vom Computer hochladen") further down on the side? I already tried to increase POS=1->X, but it made no difference.

All the best
Carsten

Windows 7 prof 64 bit
IE 11.0.135
iMacros personal 12.5.2018.1105



Code: Select all

 
 VERSION BUILD=12.5.2018.1105
TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.00
SET !DATASOURCE c:\tr\test.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://sellercentral.amazon.de/customization/manageListings?ref_=myi_ac_vl_fba
'die SKU des Plissees ist die erste Spalte der CSV -> {{!COL1}}
TAG POS=1 TYPE=INPUT:SEARCH ATTR=CLASS:"a-input-text search-input" CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-18-announce
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Profilfarbe"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=4 TYPE=SPAN ATTR=TXT:"Typ auswählen"
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
' Liste der Profilfarben. 2 Optionen bietet Amazon so an. Ab dem dritten muss das Kommando dazu, dass eine neue Option verfügbar wird
' ab dem 9. Profil ist es foliertes Holz, das kostet extra, deswegen wird die "Aufpreis-Zeile" eingefügt
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Profilfarbe wählen"
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="weiß"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="silber eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png1
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="schwarz eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="titan eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=5 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="anthrazit"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="grau"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=7 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="braun"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=8 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="elfenbein"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche dunkel foliert"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche gold foliert"
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Kiefer foliert"
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Mahagoni foliert"
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Nussbaum foliert"
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Winchester foliert"
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png 
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auwahl der Profilfarbe"
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT=Griff
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=2 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=2 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Griff auswählen"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Trapez
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Rechteck
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Blatt
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff weiß pulverb."
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff schwarz elox."
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff silber elox."
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl des Griffs"
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Montage"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=3 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Art der Montage"
TAG POS=15 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren)"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren) mit Magnet"
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=8
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klemmträger -läuft in der Falz"
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=10
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger -läuft in der Falz"
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=14
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger mit Magnet"
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=22
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl der Montage"
TAG POS=3 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-9-announce
 
Attachments
Screenshot.png
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Multiple images are uploaded in one item

Post by chivracq » Mon Aug 05, 2019 8:31 pm

RealCasi wrote:
Mon Aug 05, 2019 5:30 pm

Code: Select all

Windows 7 prof 64 bit
IE 11.0.135
iMacros personal 12.5.2018.1105
Dear forum members,

I have a problem with picture upload on "Amazon Custom":
- On one page you can/must upload different pictures. See screenshot.
- iMacro records always the same line "TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\xxxxx" - see code snippet
- Behaviour when playing the macro: the first picture gets uploaded again and again, all the other pictures don't get uploaded.

Ok, it's always the same line, therefore always the same picture. But how do I adress the upload buttons (German: "Vom Computer hochladen") further down on the side? I already tried to increase POS=1->X, but it made no difference.

All the best
Carsten

Code: Select all

 
VERSION BUILD=12.5.2018.1105
TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.00
SET !DATASOURCE c:\tr\test.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://sellercentral.amazon.de/customization/manageListings?ref_=myi_ac_vl_fba
'die SKU des Plissees ist die erste Spalte der CSV -> {{!COL1}}
TAG POS=1 TYPE=INPUT:SEARCH ATTR=CLASS:"a-input-text search-input" CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-18-announce
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Profilfarbe"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=4 TYPE=SPAN ATTR=TXT:"Typ auswählen"
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
' Liste der Profilfarben. 2 Optionen bietet Amazon so an. Ab dem dritten muss das Kommando dazu, dass eine neue Option verfügbar wird
' ab dem 9. Profil ist es foliertes Holz, das kostet extra, deswegen wird die "Aufpreis-Zeile" eingefügt
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Profilfarbe wählen"
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="weiß"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="silber eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png1
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="schwarz eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="titan eloxiert"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=5 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="anthrazit"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="grau"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=7 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="braun"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=8 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="elfenbein"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche dunkel foliert"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche gold foliert"
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Kiefer foliert"
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Mahagoni foliert"
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Nussbaum foliert"
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Winchester foliert"
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png 
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auwahl der Profilfarbe"
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT=Griff
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=2 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=2 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Griff auswählen"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Trapez
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Rechteck
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Blatt
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff weiß pulverb."
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff schwarz elox."
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff silber elox."
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl des Griffs"
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Montage"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=3 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Art der Montage"
TAG POS=15 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren)"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren) mit Magnet"
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=8
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klemmträger -läuft in der Falz"
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=10
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger -läuft in der Falz"
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=14
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger mit Magnet"
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=22
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl der Montage"
TAG POS=3 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-9-announce
 
OK, good-good, you've posted your Script in plain Text like I had asked in your previous Thread, and it looks to me like you've "solved" the Pb from the other Thread by using the 'CLASS' Attribute for most 'TAG' Statements, instead of the dynamic ID's, even if I still see a few "a-autoid-[n]-..." and that "[n]" is probably dynamic, I would think...

Then, well..., about uploading Pix to this Site, this Line looks correct to me:

Code: Select all

TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\xxxxx
... but further in your Script, you have several times:

Code: Select all

TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT="Vom Computer hochladen"
... and this doesn't look "correct" to me. The 'CONTENT' Param should contain a Path to some Local File, like in the Statement you say iMacros recorded, and not this "Vom Computer hochladen" that you currently have several times in your Script.

I'm not too sure either about the "POS=1" for all of them, although that can be correct as the "Vom Computer hochladen" seems to change later into "Bild aendern" once a File has been uploaded. but the Tagging is based on "ATTR=NAME:file" which will probably be the same for all uploaded Pix, so the 'POS' Param should increment itself to 1=>2=>3 etc...

And maybe/probably more reliable would be to keep it indeed with "POS=1" for all Statements, but to use 'Relative Positioning' (=> 'POS=R1'), for all extra Pix, and to use the "Anpassungsdetails [n]" Field as 'Anchor'. :idea:
(Check the Wiki about 'Relative Positioning' + 'Anchor' if you need more Info to understand the Principle/Functionality... :wink: )

That 'Relative Positioning' Technique/Functionality would also probably be a "better" Implementation for other parts of your Script, as I see quite a few 'POS=12' / ... up to 'POS=19', which I find a bit "risky", it's "Better Practice" (for Reliability) to try to keep the 'POS=n' as low as possible. I guess all those 'INPUT' Fields have a different Label that you could use as 'Anchor' each time also... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Tue Aug 06, 2019 10:50 am

Thank you!

The "Vom Computer hochladen" is wrong for sure. After recording the macro all the lines looked like that and I changed the first few to see what happens. I can change the further lines if the first five work correctly :D

Increasing the POS-tag doesn't help, I tried this before writing the post here.
And maybe/probably more reliable would be to keep it indeed with "POS=1" for all Statements, but to use 'Relative Positioning' (=> 'POS=R1'), for all extra Pix, and to use the "Anpassungsdetails [n]" Field as 'Anchor'. :idea:
(Check the Wiki about 'Relative Positioning' + 'Anchor' if you need more Info to understand the Principle/Functionality... :wink: )
Ok, thank you for the hint. this is new to me, I'll check the wiki and come back here.

Regards
Carsten
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Multiple images are uploaded in one item

Post by chivracq » Tue Aug 06, 2019 11:27 am

RealCasi wrote:
Tue Aug 06, 2019 10:50 am
Thank you!

The "Vom Computer hochladen" is wrong for sure. After recording the macro all the lines looked like that and I changed the first few to see what happens. I can change the further lines if the first five work correctly :D

Increasing the POS-tag doesn't help, I tried this before writing the post here.
And maybe/probably more reliable would be to keep it indeed with "POS=1" for all Statements, but to use 'Relative Positioning' (=> 'POS=R1'), for all extra Pix, and to use the "Anpassungsdetails [n]" Field as 'Anchor'. :idea:
(Check the Wiki about 'Relative Positioning' + 'Anchor' if you need more Info to understand the Principle/Functionality... :wink: )
Ok, thank you for the hint. this is new to me, I'll check the wiki and come back here.

Regards
Carsten
OK, try to look at it today already, as I'll probably won't be much available the coming week from tomorrow... (Going to some Festival were I'll be one of the DJ's..., and probably with difficult/limited Internet...)

Here is a "Quick Link" to 'Relative Positioning' in the Wiki... 8)

But the Principle is simple... In a Nutshell, you tag your 'Anpassungsdetails 1' Field to use as 'Anchor', you add a "fake" 'EXTRACT=TXT' if there is any Hyperlink on that Element to avoid iMacros from clicking on it, and you replace the 'POS=n' for the "real"/relative 'TAG' with 'POS=R1', which will give stg like:

Code: Select all

TAG POS=1 TYPE=SPAN ATTR=TXT:Anpassungsdetails<SP>1* EXTRACT=TXT
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\xxxxx
Well, => 'TYPE=SPAN' or 'TYPE=DIV' for the 'Anchor', I don't know, see what gets recorded... And you include the "1" and "2" etc in the 'TXT' Attribute, then it should be 'POS=1' for all, or you "start" the Wildcard already after the Space, and 'POS=1' will be for the 1st extra Pix, 'POS=2' for the 2nd extra Pix, etc...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Tue Aug 06, 2019 8:22 pm

Great idea to go on a festival - I also disappear for one as of Thursday, but only as a stupid visitor :lol: Have fun being DJ!

I managed to make my script working so far - still there are two issues/questions.

1. The code is not consistent -> I increase the POS=1,2,25 tag for the text fields while I use the relative POS=R1 for the picture uploads. -> this is the result of different tests, other combinations of absolute and relative indices didn't work.
But I think this is ok, or do you have concerns?

2. The much bigger issue is the performance. The script takes 9-10 minutes, and the main reason is that the time for uploading a picture goes up drastically. Pictures of almost the same size take ~2 seconds when the macro just started and > 20 seconds when it's about the very last pictures. See result of the three stopwatch marks:
2019/08/06,19:21:25,1stpicture,5.918
2019/08/06,19:24:27,2ndpicture,20.443
2019/08/06,19:28:36,3rdpicture,28.395
2019/08/06,19:21:06,total,498.639
Profiler says the same -> www.stattrand-aquaristik.com/mediafiles ... 08-06.xml
Any ideas? (<- as well about improving the code as about impacts like line speed etc.... the task manager told me my machine was not stressed at all, but here in the office we have only a 100 Mbit access :evil:

We need to personalize of 45 sets of 1440 product variations. With the given 9 min for each variation the script would need 9 days for 1440 variations and 405 days for the whole 45 sets :lol: :lol: :lol:

Generally, are there practical ot theoretical limits about how many loops a script should do?

All the best
Carsten

Code: Select all

VERSION BUILD=12.5.2018.1105
STOPWATCH ID=total
TAB T=1
TAB CLOSEALLOTHERS
SET !DATASOURCE c:\tr\test.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
'first lines must be slower, otherwise Amazon reports an error \_ö_/
SET !PLAYBACKDELAY 0.5
URL GOTO=https://sellercentral.amazon.de/customization/manageListings?ref_=myi_ac_vl_fba
'die SKU des Plissees ist die erste Spalte der CSV -> {{!COL1}}
TAG POS=1 TYPE=INPUT:SEARCH ATTR=CLASS:"a-input-text search-input" CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
'now we can speed up
SET !PLAYBACKDELAY 0.0
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-18-announce
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Profilfarbe"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=4 TYPE=SPAN ATTR=TXT:"Typ auswählen"
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
' Liste der Profilfarben. 2 Optionen bietet Amazon so an. Ab dem dritten muss das Kommando dazu, dass eine neue Option verfügbar wird
' ab dem 9. Profil ist es foliertes Holz, das kostet extra, deswegen wird die "Aufpreis-Zeile" eingefügt
' aus irgendwelchen Gründen muss die POS des Optionsnamen kontinuierlich hochgezählt werden, die POS des Bildes aber immer R(elativ) um 1 hochgezählt werden.
' der a-button-imput hat immer POS=1, nun ja
' sieht unlogisch aus, aber andere Kombinationen haben im Test zu Fehlern geführt.
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Profilfarbe wählen"
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="weiß"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="silber eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
STOPWATCH ID=1stpicture
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="schwarz eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
STOPWATCH ID=1stpicture
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="titan eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=5 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="anthrazit"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="grau"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=7 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="braun"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=8 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="elfenbein"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche dunkel foliert"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche gold foliert"
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Kiefer foliert"
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Mahagoni foliert"
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Nussbaum foliert"
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Winchester foliert"
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png 
' "Fussbereich" der ersten Oberfläche
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auwahl der Profilfarbe"
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
'Erstellen der zweiten Oberfläche
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT=Griff
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=2 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Griff auswählen"
' ab hier werden die Griffe definiert. 
' es bleibt dabei, dass die Position der Textfelder weiter hoch zählt, die Bilder aber immer R1 bleiben (relativ zum vorherigen Bilder-Upload)
' die POS der a-button-imput ist in der zweiten Oberfläche immer = 2
TAG POS=15 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Trapez
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Rechteck
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=2ndpicture
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Blatt
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=2ndpicture
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff weiß pulverb."
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff schwarz elox."
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=20 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff silber elox."
TAG POS=20 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
' "Fussbereich" der zweiten Oberfläche
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl des Griffs"
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
'Erstellen der dritten Oberfläche
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Montage"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=3 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Art der Montage"
' ab hier werden die Montage-Arten definiert. Logik der Zählweise wie oben
TAG POS=21 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren)"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=22 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren) mit Magnet"
TAG POS=22 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=8
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=23 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klemmträger -läuft in der Falz"
TAG POS=23 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=10
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=24 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger -läuft in der Falz"
TAG POS=24 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=14
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=3rdpicture
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=25 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger mit Magnet"
TAG POS=25 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=22
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=3rdpicture
' "Fussbereich" der dritten Oberfläche
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl der Montage"
TAG POS=3 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
STOPWATCH ID=total
'for the moment we don't want to loop, so let it run in an error
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=i_let_you_run_in_an_error
' the next line does the saving of the SKU - remarked for the moment
' TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-9-announce
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Multiple images are uploaded in one item

Post by chivracq » Tue Aug 06, 2019 9:12 pm

RealCasi wrote:
Tue Aug 06, 2019 8:22 pm
Great idea to go on a festival - I also disappear for one as of Thursday, but only as a stupid visitor :lol: Have fun being DJ!

I managed to make my script working so far - still there are two issues/questions.

1. The code is not consistent -> I increase the POS=1,2,25 tag for the text fields while I use the relative POS=R1 for the picture uploads. -> this is the result of different tests, other combinations of absolute and relative indices didn't work.
But I think this is ok, or do you have concerns?

2. The much bigger issue is the performance. The script takes 9-10 minutes, and the main reason is that the time for uploading a picture goes up drastically. Pictures of almost the same size take ~2 seconds when the macro just started and > 20 seconds when it's about the very last pictures. See result of the three stopwatch marks:

Code: Select all

2019/08/06,19:21:25,1stpicture,5.918
2019/08/06,19:24:27,2ndpicture,20.443
2019/08/06,19:28:36,3rdpicture,28.395
2019/08/06,19:21:06,total,498.639
Profiler says the same -> www.stattrand-aquaristik.com/mediafiles ... 08-06.xml
Any ideas? (<- as well about improving the code as about impacts like line speed etc.... the task manager told me my machine was not stressed at all, but here in the office we have only a 100 Mbit access :evil:

We need to personalize of 45 sets of 1440 product variations. With the given 9 min for each variation the script would need 9 days for 1440 variations and 405 days for the whole 45 sets :lol: :lol: :lol:

Generally, are there practical ot theoretical limits about how many loops a script should do?

All the best
Carsten

Code: Select all

VERSION BUILD=12.5.2018.1105
STOPWATCH ID=total
TAB T=1
TAB CLOSEALLOTHERS
SET !DATASOURCE c:\tr\test.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
'first lines must be slower, otherwise Amazon reports an error \_ö_/
SET !PLAYBACKDELAY 0.5
URL GOTO=https://sellercentral.amazon.de/customization/manageListings?ref_=myi_ac_vl_fba
'die SKU des Plissees ist die erste Spalte der CSV -> {{!COL1}}
TAG POS=1 TYPE=INPUT:SEARCH ATTR=CLASS:"a-input-text search-input" CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
'now we can speed up
SET !PLAYBACKDELAY 0.0
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-18-announce
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Profilfarbe"
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=4 TYPE=SPAN ATTR=TXT:"Typ auswählen"
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
' Liste der Profilfarben. 2 Optionen bietet Amazon so an. Ab dem dritten muss das Kommando dazu, dass eine neue Option verfügbar wird
' ab dem 9. Profil ist es foliertes Holz, das kostet extra, deswegen wird die "Aufpreis-Zeile" eingefügt
' aus irgendwelchen Gründen muss die POS des Optionsnamen kontinuierlich hochgezählt werden, die POS des Bildes aber immer R(elativ) um 1 hochgezählt werden.
' der a-button-imput hat immer POS=1, nun ja
' sieht unlogisch aus, aber andere Kombinationen haben im Test zu Fehlern geführt.
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Profilfarbe wählen"
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="weiß"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="silber eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
STOPWATCH ID=1stpicture
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="schwarz eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
STOPWATCH ID=1stpicture
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=4 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="titan eloxiert"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=5 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="anthrazit"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Bohren.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=6 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="grau"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\grau.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=7 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="braun"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Griff.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=8 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="elfenbein"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche dunkel foliert"
TAG POS=9 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Eiche gold foliert"
TAG POS=10 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Kiefer foliert"
TAG POS=11 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Mahagoni foliert"
TAG POS=12 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Nussbaum foliert"
TAG POS=13 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Winchester foliert"
TAG POS=14 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL3}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=C:\tr\Profilfarben.png 
' "Fussbereich" der ersten Oberfläche
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auwahl der Profilfarbe"
TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
'Erstellen der zweiten Oberfläche
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT=Griff
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=2 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Griff auswählen"
' ab hier werden die Griffe definiert. 
' es bleibt dabei, dass die Position der Textfelder weiter hoch zählt, die Bilder aber immer R1 bleiben (relativ zum vorherigen Bilder-Upload)
' die POS der a-button-imput ist in der zweiten Oberfläche immer = 2
TAG POS=15 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Trapez
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=16 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Rechteck
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=2ndpicture
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=17 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT=Blatt
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=2ndpicture
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff weiß pulverb."
TAG POS=18 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff schwarz elox."
TAG POS=19 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=2 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=20 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Alu Designgriff silber elox."
TAG POS=20 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT={{!COL2}}
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
' "Fussbereich" der zweiten Oberfläche
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl des Griffs"
TAG POS=2 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
'Erstellen der dritten Oberfläche
TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-0-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text amz-custom-surface-name" CONTENT="Montage"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=SPAN ATTR=ID:a-autoid-24-announce
TAG POS=1 TYPE=A ATTR=TXT:Optionsliste
TAG POS=3 TYPE=BUTTON ATTR=ID:a-autoid-26-announce
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-list-of-options-label" CONTENT="Art der Montage"
' ab hier werden die Montage-Arten definiert. Logik der Zählweise wie oben
TAG POS=21 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren)"
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=22 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Spannfüße (bohren) mit Magnet"
TAG POS=22 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=8
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=23 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klemmträger -läuft in der Falz"
TAG POS=23 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=10
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=24 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger -läuft in der Falz"
TAG POS=24 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=14
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=3rdpicture
TAG POS=3 TYPE=INPUT:SUBMIT ATTR=CLASS:a-button-input
TAG POS=25 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-large amz-custom-option-name" CONTENT="Klebeträger mit Magnet"
TAG POS=25 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-small amz-custom-option-price-delta" CONTENT=22
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=c:\tr\Griff.png
STOPWATCH ID=3rdpicture
' "Fussbereich" der dritten Oberfläche
TAG POS=3 TYPE=INPUT:TEXT ATTR=CLASS:"a-input-text a-form-normal a-width-medium amz-custom-print-area-name" CONTENT="Auswahl der Montage"
TAG POS=3 TYPE=INPUT:CHECKBOX ATTR=NAME:amz-custom-area-is-required-name CONTENT=YES
STOPWATCH ID=total
'for the moment we don't want to loop, so let it run in an error
TAG POS=R1 TYPE=INPUT:FILE ATTR=NAME:file CONTENT=i_let_you_run_in_an_error
' the next line does the saving of the SKU - remarked for the moment
' TAG POS=1 TYPE=BUTTON ATTR=ID:a-autoid-9-announce
Yeah, well, there are no "stupid Visitors" when talking about a Festival or any Live Perf, both "Sides" need each other I would think... And I'm lucky to switch regularly from Side, ah-ah...! 8)

OK, back to your Thread... Hum, strange, very strange that Perf is going drastically quickly down after a few Uploads... I don't do any Uploads in my own Scripts, so I've never dug into "that part" myself, but I've never seen a Thread on the Forum about that either... Then, oops, I don't really know..., could be related to IE or iMacros for IE v12.5 (which is quite recent), or to the Site, or Connection, but 100Mbps is already more than good enough, I would think, I'm usually happy myself already with 100Kbps, ah-ah...!
So I don't now for that part, I'll soft-alert @TechSup if they want to have a look, I guess they probably have some Benchmark-Test they can test on several Browsers/iMacros Versions for that Func...

Hum, couldn't have a look at your '.xml' File, got some Error...:

Code: Select all

https://www.stattrand-aquaristik.com/mediafiles/manuals/Profiler_2019-08-06.xml
Error loading stylesheet: A network error occurred loading an XSLT stylesheet:https://www.stattrand-aquaristik.com/me ... ofiler.xsl
But I don't really have much time to go digging into that one anyway... :wink:

But stg else I noticed, well, 'R-POS' is "meant" to keep the 'POS=n' as low as possible on the 'TAG' for your Element, and ideally at 'POS=R1', but if your Anchor goes up to 'POS=25' like I see in your Script, then nope, not good...!, you are then "shifting" the Pb about the high 'POS=n' to the Anchor, and that's not the "Purpose" of 'R-POS'... :shock:
Either you need to use some other Attr(s) to tag your 'Anchor' uniquely with a low 'POS', or to find some other 'Anchor', or maybe use 2x 'R-POS'..., but 'POS=25' for an 'Anchor' is not good...!

There are some Exceptions where a 'POS=25' could be "OK", or even/rather 'POS=R25', for example when applying 'R-POS' to Cells in a Table with a dynamic Nb of Rows and/or Cols, and the "25" will be dynamically computed based of both Nb's for Rows and Cols, but that's not the Case here... And the "25" will never be hard-coded, it would be a Var computed from 'EVAL()'... (But that's already a little bit "Advanced"..., get the "Basics" first, ah-ah...! (Even if you are a very quick Learner... Pleasure to help Users like you, actually...) :wink: )
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Wed Aug 07, 2019 8:30 am

Good morning,

regarding the performance issue I will open a ticket at the official support. I'm still in the free evaluation and they probably want to sell a license, so fast reaction is likely :lol:

Regadring the "avoid Pos =25":
I tried different combinations of POS=R1, POS=R2 and so on for the text input fields, but the script kept doing rubbish. Although the text fields and the image upload boxes are defined in a combined element in the CSS, the approach that works for the pictures (as you see in the code) doesn't work for the text fields.
Anyway - what kind of difficulties might appear if I leave it like that? -> For the moment everything works fine -> Despite the performance problem the script shall run 45 times in an identical environment just with a different CSV file (maybe I also combine CSV files and let it run 22x on an 2880 items....) and than never ever again.



Regards
Carsten
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Wed Aug 07, 2019 10:02 pm

Little update. IMacros support told me that during evaluation there is no support available (although the opposite is clearly stated on their website) and asked me to open a thread here for the performance issue.
So don't wonder that I start a third thread....

Carsten
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Multiple images are uploaded in one item

Post by chivracq » Thu Aug 08, 2019 12:39 am

RealCasi wrote:
Wed Aug 07, 2019 8:30 am
Good morning,

regarding the performance issue I will open a ticket at the official support. I'm still in the free evaluation and they probably want to sell a license, so fast reaction is likely :lol:

Regadring the "avoid Pos =25":
I tried different combinations of POS=R1, POS=R2 and so on for the text input fields, but the script kept doing rubbish. Although the text fields and the image upload boxes are defined in a combined element in the CSS, the approach that works for the pictures (as you see in the code) doesn't work for the text fields.
Anyway - what kind of difficulties might appear if I leave it like that? -> For the moment everything works fine -> Despite the performance problem the script shall run 45 times in an identical environment just with a different CSV file (maybe I also combine CSV files and let it run 22x on an 2880 items....) and than never ever again.

Regards
Carsten
Yeah well, concerning the 'POS=25', that's my "personal" Opinion, a bit based on "Experience" of course, but tja...!, if it works "now", then OK, it works...! The "Danger" would/might come from the CSS and HTML Structure changing over time, which happens when Content changes on Web-Pages, but if you only need to run that Script once on similar Pages with a "stable" CSS, then OK, just do it if the Script "does the Job" anyway...
I would probably find a "better" Approach but I would need to be able to have a look at the Page(s)/Site myself, but if it works already, then I guess that's good enough for the moment...

RealCasi wrote:
Wed Aug 07, 2019 10:02 pm
Little update. IMacros support told me that during evaluation there is no support available (although the opposite is clearly stated on their website) and asked me to open a thread here for the performance issue.
So don't wonder that I start a third thread....

Carsten
Yep, (Official) Support is only for iMB and the 'Enterprise Edition' anyway, even Users with a ("full") 'PE' License have to use the Forum... :|
But TechSup often answer Threads on the Forum anyway, and I "alert" them from time to time about specific Threads like I did with yours, if there might be some Bug or if I can't answer... 8)
(And I don't use any of the "current" Versions for the 4 Browsers, so I can never test/try anything in any of the Versions that need a License, I've also actually never used iMB myself, the iMacros Browser...)

Then, yep, saw your Thread about performance, good indeed to have that part as a separate Thread...:
- Performance issue with picture upload at Amazon custom
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Tom, Tech Support
Posts: 3834
Joined: Mon May 31, 2010 4:59 pm

Re: Multiple images are uploaded in one item

Post by Tom, Tech Support » Thu Aug 08, 2019 10:27 am

Hi Carsten,
We learned that we can open a ticket also in evaluation phase, but for some reason the evaluation license ist not shown in "my products - my evaluations", although registered with the same email address.
The iMacros for IE freeware version (iMacrosFreewareSetup_12.5.503.8802_x64.exe) and the iMacros [Personal/Professional/Enterprise] trial version (iMacrosSetup_12.5.503.8802_x64.exe) do not include an "evaluation" license. The freeware is free for personal use but with limited functionality. The trial version includes the full functionality but is limited to 30-days.

An evaluation license can be requested separately if you need e.g. another 30-days to evaluate or wish to test the product without having to dismiss the trial reminder screen every time iMacros starts. If you never requested such a license and activated the software with the given license, then no such license will appear in your portal account.
Well, no support for evaluation licenses? Really? Please update your website then, see third screenshot. It clearly says you can open technical tickets during evaluation time.
When our customer service rep stated that "The evaluation doesn't come with support" I believe she meant to say that the "freeware and trial versions" do not come with support. An evaluation license can be requested by using the Contact Us form on the iMacros website.

However, since you already managed to open a case asking about the evaluation license, there is no need to submit a separate request for an evaluation license at this time and I can move the existing case from customer service to technical support.

When you installed the trial version, which edition did you select to try? Personal, Professional, or Enterprise?

I would suggest that you try at least the Professional edition and then test your macro using the iMacros browser. Please report back here whether you see the same performance issue when playing your macro with the iMacros browser.
Regards,

Tom, iMacros Support
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Thu Aug 08, 2019 10:51 am

Hi Tom,

thank you!
I wasn't aware that there is a difference between the trial and an evaluation license. Ok.

I'm off for a long weekend and back on the track Monday. I will follow your hint, install the trial version of professional and try the performance with the iMacros browser. Then we'll know more.

All the best
Carsten
RealCasi
Posts: 19
Joined: Tue Jul 30, 2019 8:03 pm

Re: Multiple images are uploaded in one item

Post by RealCasi » Sun Aug 11, 2019 4:06 pm

Hi Tom,

I'm back and tried the iMacros browser with interesting results. Details come in the parallel post about the performance problems.

Best, Carsten
Post Reply