Forum Discussion

Weidson_Cordeir's avatar
Weidson_Cordeir
Contributor
13 years ago

Wait a window, to continue execution of another window using only FIND

I am using the following code:





Log.Message("Clicando no Botão Prosseguir")

Set BtnProsseguir = PainelMenu.Find(Array("idStr","ObjectType"), Array("btnProsseguir", "ImageButton"),1000)

BtnProsseguir.Click

Delay(1000)

Log.Message("Marcando a Opção Todos")

Set RddTodos = PainelMenu.Find(Array("idStr","ObjectType"), Array("LGTabelaPasso2_LGTabelaTipoDeRegistroAuditado_LGrbtSucesso_2", "RadioButton"),1000)

While RddTodos.Enabled <> True

Delay(500)

WEnd

RddTodos.Click




but not having any success.



error log attached


Can someone help me?


Att,


 

1 Reply


  • Hi Weidson,


     


    I think the error occurs in this line:




    While RddTodos.Enabled <> True




    You are trying to get access to the Enabled property while the RddTodos object doesn't exist (the Find method doesn't find the target object). Try using the Exists property:




    While RddTodos.Exists <> True