iMacros 7 IE Javascript Bug

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.

Moderators: Marcia, iOpus, Hannes, iOpus, Tech Support, Tom, iOpus

iMacros 7 IE Javascript Bug

Postby cqc2010 on Mon Jul 19, 2010 9:31 am

Hi!, well, when we first created the macro was on v6.90, and now we would like to upgrade to the lastest version. So we were testing and found some issues, we don't really know what's wrong with the macro. If is the version, the macro code or something in the new iMacros Browser Core that's crashing our automatization.

We would appreciate any help or any explanation of how the click or the tag search works to solve this problem.

Thanks in advance!

Screenshot:
ImageUploaded with ImageShack.us

This is the Javascript Code that manages the execution of the button when clicked:
Code: Select all
      function GBtnClick(oBtn){
         var oRow = oBtn.parentElement.parentElement.parentElement.parentElement.parentElement;

         if (oBtn.className!='G_GRAF') window.open('../../blank.asp', 'detail', 'width=1010, height=680, top=5,left=5, toolbars=no, scrollbars=no');
         frmGrid.sUT.value = oRow.cde;

         switch (oBtn.className) {
            /*case "G_STATUS" :
               Post_frmGrid('Equipos_Detalle_Historico_R.asp','detail');
               break;*/
            case "G_GRAF":
               document.getElementById("frmGrid").sRow.value = oRow.cde;
               document.getElementById("frmGrid").sRowName.value = oRow.nme;
               Post_frmGrid('Prod_EV_H.asp','vf_reportheader');
               //alert("Grafico en Construcción");
               break;
         }      
      }


The macro line that crash:
TAG POS=1 TYPE=TD ATTR=ID:Gtx4 <<<<<< In this line the macro crash (it works fine in v6.90 and the tag TD exists in the webpage), refer as * in the macro

The Macro:
Code: Select all
VERSION BUILD=701818
SET !FILESTOPWATCH TiempoMacro.csv
TAB T=1     
TAB CLOSEALLOTHERS     
STOPWATCH ID=Total
URL GOTO=http://vf.ternium.net/login/loginauth.asp?UserName=ROBOT     
STOPWATCH ID=Imagen
IMAGESEARCH POS=1 IMAGE=LibritoGrisOscuro.BMP CONFIDENCE=100   
STOPWATCH ID=Imagen

FRAME F=13
TAG POS=13 TYPE=TD ATTR=TXT:<SP>
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100


FRAME F=11     
STOPWATCH ID=FILTRO1
TAG POS=1 TYPE=TD ATTR=ID:Gtx4    ******************************************************************
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO1
STOPWATCH ID=FILTRO2
TAG POS=1 TYPE=TD ATTR=ID:Gtx8
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO2
STOPWATCH ID=FILTRO3
TAG POS=1 TYPE=TD ATTR=ID:Gtx12   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO3
STOPWATCH ID=FILTRO4
TAG POS=1 TYPE=TD ATTR=ID:Gtx19   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO4
STOPWATCH ID=FILTRO5
TAG POS=1 TYPE=TD ATTR=ID:Gtx26   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO5
STOPWATCH ID=FILTRO6
TAG POS=1 TYPE=TD ATTR=ID:Gtx30   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO6
STOPWATCH ID=FILTRO7
TAG POS=1 TYPE=TD ATTR=ID:Gtx34   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO7
STOPWATCH ID=FILTRO8
TAG POS=1 TYPE=TD ATTR=ID:Gtx39   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO8
STOPWATCH ID=FILTRO9
TAG POS=1 TYPE=TD ATTR=ID:Gtx46   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO9
STOPWATCH ID=FILTRO10
TAG POS=1 TYPE=TD ATTR=ID:Gtx52   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO10
STOPWATCH ID=FILTRO11
TAG POS=1 TYPE=TD ATTR=ID:Gtx55   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO11
STOPWATCH ID=FILTRO12
TAG POS=1 TYPE=TD ATTR=ID:Gtx59   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO12
STOPWATCH ID=FILTRO13
TAG POS=1 TYPE=TD ATTR=ID:Gtx64   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO13
STOPWATCH ID=FILTRO14
TAG POS=1 TYPE=TD ATTR=ID:Gtx69   
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO14
STOPWATCH ID=FILTRO15
TAG POS=1 TYPE=TD ATTR=ID:Gtx74 
IMAGESEARCH POS=1 IMAGE=Graficog4.BMP CONFIDENCE=100
STOPWATCH ID=FILTRO15
STOPWATCH ID=Total


OS: Windows 7
iMacros Version: 7.0.1.818
cqc2010
 
Posts: 1
Joined: Mon Jul 19, 2010 9:11 am

Re: iMacros 7 IE Javascript Bug

Postby Tom, iOpus on Tue Jul 20, 2010 4:13 am

Hello,

I wasn't able to access the website used in the macro. Is this a publicly accessible website? I'd like to be able to reproduce the error.
Regards,

Tom, iOpus Support
Tom, iOpus
 
Posts: 445
Joined: Mon May 31, 2010 9:59 am


Return to Scripting and Command Line Interface

Who is online

Users browsing this forum: No registered users and 1 guest