formfill not recorder properly / not working

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Check
Newbie
Posts: 2
Joined: Tue Jul 10, 2012 11:44 am

formfill not recorder properly / not working

Post by Check » Tue Jul 10, 2012 1:38 pm

hi all,

i have this form (with javascript) where i want to fill a field of the form. when recording, i get the following line in the script:

IE_FormFill>%IE[2]%,{""},{"ACTION:/internetmarke/franking.do"},{"letter(ID1341584016853).letterStandardProducts"},{"Großbrief (1,45 €)"},0,ie_res

where the ID number is different every time i record the same thing and of course if i play it back, it doesn't work - the field simply isn't changed.

tried to edit the IE_FormFill parameters in a few different ways, but so far, no luck. would someone know what are the correct parameters to fill in there so that it will work? many thanks in advance!

and here is the complete html file of the form:




Online-Porto Internetmarke | Deutsche Post




































1) {
document.write('');
$('#currentRequestURI').parent().css('display', 'none');
location.replace('/internetmarke/franking.do');
}
//-->








Benutzer: 

Jörg Feierabend


Aktuelles Guthaben: 

0,00 EUR 


Porto laden


meine Daten ändern
meine letzten Käufe
Abmelden



Internetmarke - das schnelle Online-Porto
Guten Tag, Jörg Feierabend






















Briefe mit Adresse












 
einzeln
gesamt
 



1

Stück


Standardbrief (0,55 €)
Kompaktbrief (0,90 €)
Großbrief (1,45 €)
Maxibrief (2,20 €)
Postkarte (0,45 €)
Büchersendung Standard (0,45 €)
Büchersendung Groß (0,85 €)
Büchersendung Maxi (1,40 €)
Warensendung Kompakt (0,70 €)
Warensendung Maxi (1,65 €)
Standardbrief Intern. GK (0,75 €)
Kompaktbrief Intern. GK (1,45 €)
Großbrief Intern. GK (3,45 €)
Maxibrief Intern. bis 1.000g GK (7,00 €)
Postkarte Intern. GK (0,75 €)
-----------------------------------------------------
Standardbrief (0,55 €)
Kompaktbrief (0,90 €)
Großbrief (1,45 €)
Büchersendung Groß (0,85 €)
Büchersendung Maxi (1,40 €)
Warensendung Maxi (1,65 €)
Maxibrief Intern. bis 1.000g GK (7,00 €)
Presse&Buch Eco 500g (3,00 €)
Presse&Buch Eco 1000g (5,50 €)
Presse&Buch Eco 2000g (11,00 €)
-----------------------------------------------------
weitere Produkte






0,55
EUR

0,55
EUR
löschen



verkleinern
vergrößern



































Standardbrief

07/12

0,00



ohne Adresse
eBay-Datenimport
Adress-Datenimport
Absenderadresse ändern
Empfängeradresse ändern
















Adresse: 



 von














































Briefe ohne Adresse






















 
einzeln
gesamt
 



Stück




























Standardbrief (0,55 €)


Kompaktbrief (0,90 €)


Großbrief (1,45 €)


Maxibrief (2,20 €)


Postkarte (0,45 €)


Büchersendung Standard (0,45 €)


Büchersendung Groß (0,85 €)


Büchersendung Maxi (1,40 €)


Warensendung Kompakt (0,70 €)


Warensendung Maxi (1,65 €)


Standardbrief Intern. GK (0,75 €)


Kompaktbrief Intern. GK (1,45 €)


Großbrief Intern. GK (3,45 €)


Maxibrief Intern. bis 1.000g GK (7,00 €)


Postkarte Intern. GK (0,75 €)


-----------------------------------------------------


Standardbrief (0,55 €)


Kompaktbrief (0,90 €)


Großbrief (1,45 €)


Büchersendung Groß (0,85 €)


Büchersendung Maxi (1,40 €)


Warensendung Maxi (1,65 €)


Maxibrief Intern. bis 1.000g GK (7,00 €)


Presse&Buch Eco 500g (3,00 €)


Presse&Buch Eco 1000g (5,50 €)


Presse&Buch Eco 2000g (11,00 €)



-----------------------------------------------------
weitere Produkte













0,55
EUR
0,55
EUR
löschen



verkleinern
vergrößern



















Hier Grußtext oder Slogan einfügen

www.internetmarke.de


0,00 EUR
07/12
XX XXXX XXXXXX XXXX XXXX





Adresse hinzufügen
Motiv ändern
Motiv löschen
Text löschen















Gesamtpreis: 0,00EUR


INTERNETMARKEN  für:


Briefe




INFORMATIONEN

Pakete können Sie in der eFILIALE frankieren: www.efiliale.de Wichtige Information:Einschreiben ins Ausland dürfen nicht in den Briefkasten eingeliefert werden. Bitte geben Sie Ihre Einschreiben in der Filiale ab.



INFORMATIONEN

Pakete frankieren können Sie in der eFiliale: www.efiliale.de/onlinefrankierung
Wichtige Information:Einschreiben ins Ausland dürfen nicht in den Briefkasten eingeliefert werden. Bitte geben sie Ihre Einschreiben in der Filiale ab.


-->



Informationen zum Druck






























Papierformat für Briefe mit Adresse:
DIN A4 Normalpapier

DIN A4 Normalpapier







Brief B4 250 x 353






Brief B4 250 x 353 (hoch)






Brief B5 176 x 250






Brief B6 125 x 176






Brief C4 229 x 324






Brief C4 229 x 324 (hoch)






Brief C5 162 x 229






Brief C6 114 x 162






Brief C65 114 x 229






Brief DIN lang 220 x 110






Brother DK-11202 Versand-Etikett 62 x 100






Brother DK-22205 Endlos-Etikett 62mm






Brother DK-22212 Endlos-Etikett 62mm






Brother DK-22243 Endlos-Etikett 102mm






DIN A4 Normalpapier (Einlegeblatt)






Dymo 99014, 101 x 54






Etiketten, 2 Spalten - 4 Reihen






Etiketten, 2 Spalten - 5 Reihen






Etiketten, 2 Spalten - 6 Reihen






Herma 10017 SPECIAL Etiketten 99.1 x 42.3






Herma 4250 PREMIUM 99.1 x 139






Herma 4268 PREMIUM 99.1 x 57






Herma 4269 PREMIUM 99.1 x 67.7






Herma 4280 PREMIUM 96.5 x 67.7






Herma 4281 PREMIUM 105 x 50.8






Herma 4359 PREMIUM 96.5 x 67.7






Herma 4425 PREMIUM 105 x 57






Herma 4426 PREMIUM 105 x 70






Herma 4452 PREMIUM 105 x 42






Herma 4454 PREMIUM 105 x 144






Herma 4457 PREMIUM 105 x 48






Herma 4470 PREMIUM 105 x 74






Herma 4472 PREMIUM 78.7 x 139.7






Herma 4475 PREMIUM 105 x 41






Herma 4623 PREMIUM 96.5 x 42.3






Herma 4625 PREMIUM 105 x 42.3






Herma 4626 PREMIUM 105 x 74






Herma 4628 PREMIUM 210 x 148






Herma 4653 PREMIUM 99.1 x 93.1






Herma 4667 PREMIUM 96 x 50.8






Herma 4669 PREMIUM 96.5 x 42.3






Herma 4674 PREMIUM 105 x 42.3






Herma 4676 PREMIUM 105 x 148






Herma 8690 PREMIUM 148.5 x 205






Herma 8746 CompactLine 210 x 148






Herma 8747 CompactLine 105 x 148






Herma 8748 CompactLine 105 x 74






Seiko SLP-SRL 54 x 101






Zweckform 3424 Etiketten 105 x 48






Zweckform 3425 Etiketten 105 x 57






Zweckform 3426 Etiketten 105 x 70






Zweckform 3427 Etiketten 105 x 74






Zweckform 3477 Etiketten 105 x 41 (ohne Motiv)






Zweckform 3483 Inkjet+Laser+Kopier-Etiketten






Zweckform 3653 Etiketten 105 x 42.3 (ohne Motiv)






Zweckform 3659 Etiketten 97 x 42.3






Zweckform 3660 Etiketten 97 x 67.7






Zweckform 4781 Etiketten 97 x 42.3






Zweckform 4782 Etiketten 97 x 67.7






Zweckform J4722 Etiketten 96 x 50.8






Zweckform J4794 Etiketten 99.1 x 63.5






Zweckform J8165 Etiketten 99.1 x 67.7






Zweckform J8173 Etiketten 99.1 x 57






Zweckform J8177 Etiketten 99.1 x 42.3






Zweckform L7165 Etiketten 99.1 x 67.7






Zweckform L7169 Etiketten 99,1 x 139






Zweckform L7173 Etiketten 99.1 x 57


Papierformat ändern
kostenloser Testdruck der ersten Seite


Druck erfolgt auf 1 Seiten


Bitte Startpunkt anklicken:


[1] ... [%d]

































Papierformat für Briefe ohne Adresse:
Dymo 99012 weiss 89 x 36

DIN A4 Normalpapier






Brief B4 250 x 353 (hoch)






Brief B4 250 x 353 (quer)






Brief B5 176 x 250






Brief B6 125 x 176






Brief C4 229 x 324 (hoch)






Brief C4 229 x 324 (quer)






Brief C5 162 x 229






Brief C6 114 x 162






Brief C65 114 x 229






Brief DIN Lang 110 x 220






Brother DK-11208 90 x 38






Brother DK-22205 Endlos-Etikett 62mm






Brother DK-22225 Endlos-Etikett 38mm





Dymo 99012 weiss 89 x 36







Dymo 99013 transparent 89 x 36






Etiketten, 2 Spalten - 4 Reihen






Etiketten, 2 Spalten - 5 Reihen






Etiketten, 2 Spalten - 6 Reihen






Herma 4360 PREMIUM 70 x 36






Herma 4361 PREMIUM 70 x 42






Herma 4390 PREMIUM 70 x 37






Herma 4473 PREMIUM 70 x 41






Herma 5053 PREMIUM 66 x 33,8






Herma 5054 PREMIUM 70 x 42,3






Herma 8751 CompactLine 70 x 37






Seiko SLP-STAMP 2 67 x 36






Zweckform 3422 Etiketten 70 x 35






Zweckform 3474 Etiketten 70 x 37






Zweckform 3481 Etiketten 70 x 41






Zweckform 3490 Etiketten 70 x 36






Zweckform 3652 Etiketten 70 x 42,3






Zweckform L7160 Etiketten 63,5 x 38,1


Papierformat ändern
kostenloser Testdruck der ersten Seite


Druck erfolgt auf 1 Seiten


Bitte Startpunkt anklicken:


[1] ... [%d]

































Papierformat für Briefe ohne Adresse:
Dymo 99012 weiss 89 x 36

DIN A4 Normalpapier






Brief B4 250 x 353 (hoch)






Brief B4 250 x 353 (quer)






Brief B5 176 x 250






Brief B6 125 x 176






Brief C4 229 x 324 (hoch)






Brief C4 229 x 324 (quer)






Brief C5 162 x 229






Brief C6 114 x 162






Brief C65 114 x 229






Brief DIN Lang 110 x 220






Brother DK-11208 90 x 38






Brother DK-22205 Endlos-Etikett 62mm






Brother DK-22225 Endlos-Etikett 38mm





Dymo 99012 weiss 89 x 36







Dymo 99013 transparent 89 x 36






Etiketten, 2 Spalten - 4 Reihen






Etiketten, 2 Spalten - 5 Reihen






Etiketten, 2 Spalten - 6 Reihen






Herma 4200 PREMIUM 48,3 x 33,8






Herma 4360 PREMIUM 70 x 36






Herma 4361 PREMIUM 70 x 42






Herma 4390 PREMIUM 70 x 37






Herma 4473 PREMIUM 70 x 41






Herma 5053 PREMIUM 66 x 33,8






Herma 5054 PREMIUM 70 x 42,3






Herma 8751 CompactLine 70 x 37






Seiko SLP-STAMP 1 42 x 36






Seiko SLP-STAMP 2 67 x 36






Zweckform 3422 Etiketten 70 x 35






Zweckform 3474 Etiketten 70 x 37






Zweckform 3481 Etiketten 70 x 41






Zweckform 3490 Etiketten 70 x 36






Zweckform 3652 Etiketten 70 x 42,3






Zweckform L7160 Etiketten 63,5 x 38,1


Papierformat ändern
kostenloser Testdruck der ersten Seite


Druck erfolgt auf 1 Seiten


Bitte Startpunkt anklicken:


[1] ... [%d]



























INTERNETMARKE - Adresseditor












Fehler&

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jul 11, 2012 6:44 am

If the attribute value is different each session then the field won't be found next run.

So you need to use a different attribute to identify it by.

However, I see that there is a number in the name of the field. That number may be specific to the session. Does that number appear elsewhere in the source of the HTML - or in the source of another page? If so extract it using ExtractTag/RegEx and then you can apply it into the attribute in your FormFills.

If not and if there is no other unique attribute then you could use INDEX and the numeric instance number.

And If none of that helps and nothing is consistent then things get much harder. You might be able to parse the page HTML looking for a pattern - say a label near the element - using e.g. RegEx as well as loop through all matching tags (you might use IEGetTags) to determine which one is the one you want.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts