Can I make this script run faster?

Find a consultant or advertise your services here
Post Reply
xavikuz
Posts: 1
Joined: Mon Aug 27, 2012 5:39 pm

Can I make this script run faster?

Post by xavikuz » Mon Aug 27, 2012 5:54 pm

Hello,

I am new with iMacros but so far seems to be a pretty good tool, I am trying to run this script and is taking more than 1 minute to fill out a form and as I need to run it many time is going to take a lot. If you I have some WAIT SECONDS=1 instructions, I added them because in some points the form needs to fill some dropdowns before I can select the value. For instance, if I select a State, it needs some time to fill the next dropdown with the cities so I can select it. It's there a way I can avoid those WAITs and make it based on the server response or something?

Thank you in advance!


VERSION BUILD=7500718 RECORDER=FX
TAB T=1
STOPWATCH ID=home
FILTER TYPE=IMAGES STATUS=ON
'SET !REPLAYSPEED FAST
URL GOTO=
'
'
TAG POS=1 TYPE=SELECT FORM=ACTION:j_spring_security_check ATTR=ID:tipoDocumento CONTENT=%9
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:j_spring_security_check ATTR=ID:numeroDocumento CONTENT=800801XXXX
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:j_spring_security_check ATTR=ID:j_password CONTENT=1170120731XXXX
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:loginForm ATTR=ID:submit
'
'COMPANY LEGAL REPRESENT DATA
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:tableJuridica:0:j_idt109
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:personaJuridica_razonSocial CONTENT=XXXXXX
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:personaJuridica_domTipoDomicilio CONTENT=%3
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:personaJuridica_codigoDepartamento CONTENT=%1
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:personaJuridica_codigoMunicipio CONTENT=%1027
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:personaJuridica_direccion CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:personaJuridica_telefono CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:personaJuridica_telefonoAlterno CONTENT=XXXXXX
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:representanteLegal_domTipoPersona CONTENT=%3
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:representanteLegal_domTipoDocumento CONTENT=%3
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:representanteLegal_numeroDocumento CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:representanteLegal_nombres CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:representanteLegal_primerApellido CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:representanteLegal_celular CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:representanteLegal_correoElectronico CONTENT=XXXXXX
'
'
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt298
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt131
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:nextConfirmPanel-accept
WAIT SECONDS=1
'
'MINERALS
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:j_idt314 CONTENT=%11013
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt316
'
'DEMAS CONSECIBLES
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:j_idt314 CONTENT=%36
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt316
'
'JORGE DATA
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:matriculaProfesional CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:nombres CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:primerApellido CONTENT=XXXXXX
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:main ATTR=ID:main:segundoApellido CONTENT=XXXXXX
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:domProfesion CONTENT=%2
WAIT SECONDS=1
'
'AUTHORITY
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:j_idt369 CONTENT=%18
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt371
'
'MONEY AVAILABLE
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:recursoPropioAno1 CONTENT=55000000
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:recursoPropioAno2 CONTENT=80000000
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:recursoPropioAno3 CONTENT=75000000
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:otrasFuentesAno1 CONTENT=25000000
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:otrasFuentesAno2 CONTENT=80000000
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:otrasFuentesAno3 CONTENT=20000000
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:/radicador-web/pages/radweb.jsf ATTR=ID:main:terminosRef CONTENT=YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt609
WAIT SECONDS=1
'
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:nextConfirmPanel-accept
WAIT SECONDS=1
'
'DEPARTMENT
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:j_idt623 CONTENT=%37
WAIT SECONDS=1
'
'CITY
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:j_idt628 CONTENT=%1133
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt630
'
'PLANCHA
WAIT SECONDS=2
TAG POS=1 TYPE=SELECT FORM=ID:main ATTR=ID:main:radPlanchasIGAC CONTENT=%546
TAG POS=1 TYPE=INPUT:RADIO FORM=ID:main ATTR=ID:main:j_idt672:_2
'
'FILE WITH COORDINATES
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:FILE FORM=ID:main ATTR=TYPE:file CONTENT=C:\dropbox\MiningSoftwareDev\COORDINATES_PROVED\area01.txt
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:_t687
'
'VISUALIZE
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:main ATTR=ID:main:j_idt740
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:main ATTR=ID:main:modalPnlCloseBtn
Post Reply