Vous n'êtes pas identifié(e).

  • Contributions :
  • Vos boîtes de messages privés sont vides.

🟣 mm is undefined, line: 7 (Error code: -1001) - FRAME NAME="rightFrame"


#1 2018-04-18 11:05:50

Mention Mozentar
♟️ Grade : Recruit

Disciple
Inscription : 2018-04-18
Messages : 3
Likes : 0

mm is undefined, line: 7 (Error code: -1001) - FRAME NAME="rightFrame"

Bonjour à tous,

J'essaye de faire tourner le code suivant :

C'est une boucle qui va lire une info dans un fichier pour le renseigner un champ sur une page web.


VERSION BUILD=9030808 RECORDER=FX
TAB T=1

SET !DATASOURCE NDD.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}

URL GOTO=*****Url_Perso*****
FRAME NAME="rightFrame"
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV>DIV>DIV:nth-of-type(5)" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(10)>DIV:nth-of-type(2)>DIV>DIV>FORM>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>INPUT" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(10)>DIV:nth-of-type(2)>DIV>DIV>FORM>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR>TD>DIV>TABLE>TBODY>TR>TD:nth-of-type(2)>INPUT" CHARS={{!COL1}}
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(10)>DIV:nth-of-type(2)>DIV>DIV>FORM>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>TABLE>TBODY>TR:nth-of-type(2)>TD>DIV>DIV>DIV>DIV" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>TABLE>TBODY>TR>TD:nth-of-type(2)>A" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(5)" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(4)>DIV>DIV" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(5)>DIV:nth-of-type(2)>DIV" BUTTON=0
FRAME F=1
EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD>TABLE>TBODY>TR>TD>DIV:nth-of-type(2)>DIV>SELECT" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD>TABLE>TBODY>TR>TD>DIV:nth-of-type(2)>DIV>SELECT>OPTION:nth-of-type(9)" BUTTON=0
EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(5)>DIV>DIV>DIV" BUTTON=0
EVENT TYPE=MOUSEDOWN SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(4)>TABLE>TBODY>TR>TD>TABLE>TBODY>TR>TD>DIV:nth-of-type(2)>DIV" BUTTON=0
TAB T=1
EVENT TYPE=MOUSEUP POINT="(416,257)"
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAB T=1




Et j'obtiens une erreur :
mm is undefined, line: 9 (Error code: -1001)

En fait tout se passe bien la première fois, mais le code échoue au deuxième tour à la ligne :
FRAME NAME="rightFrame"

Cette ligne doit être ajoutée au départ sans quoi ça ne marche pas.

Ma question est : Puis je sortir cette instruction de la boucle ?
Du style
ligne 1
Ligne 2
Boucle {
               ligne 3
               ligne 4 } # fin de boucle

Je vous remercie pour votre éclairage.

Dernière modification par Mozentar (2018-04-20 11:05:39)

0
J'aime ❤️

🔴 Hors ligne

#2 2018-04-19 07:46:10

Mention Mozentar
♟️ Grade : Recruit

Disciple
Inscription : 2018-04-18
Messages : 3
Likes : 0

Re : mm is undefined, line: 7 (Error code: -1001) - FRAME NAME="rightFrame"

Le problème semble venir de l'identification de la page.
Frame Name...

0
J'aime ❤️

🔴 Hors ligne

Pied de page des forums