Forum Discussion

santoshthenge's avatar
santoshthenge
Occasional Contributor
14 years ago

WaitProperty

Hi all

I have use the waitproperty in the script as given follow

Call Aliases.uniRTE.UP2Runtime.MdiClient.LIJRange_Index.MgPanel.TableControl.MgTextBox_1.WaitProperty("VisibleOnScreen",True,-1)

I have wait for control till Visible On Screen but visibility control is undefined i.e it may 10 sec or 15 sec etc  so that i declared timeout as -1 (infinity).

while executing this statement it give error like

Object does not exit -You are trying to call the "VisibleOnScreen" method or property of the "MgTextBox_1" object that does not exist.

Vbscript runtime error -Invalid variant operation

Plz help me

2 Replies

  • Hi,


    It looks like the object does not exist when the script tries to call the WaitProperty method. So, you need to check whether an object exists first. Try to add the following line before:

    Call Aliases.uniRTE.UP2Runtime.MdiClient.LIJRange_Index.MgPanel.TableControl.WaitAliasChild("MgTextBox_1", 10000)



    Does it work for you now?


    By the way, -1 is not an infinity timeout. If the Timeout parameter is -1, the waiting time is specified by the Auto-wait timeout project property. Please refer to our help system to check this.


    Ann

  • santoshthenge's avatar
    santoshthenge
    Occasional Contributor
    Hi Ann,

        Thanks. Your solution works fine. I understand my mistake.

    Regards

    Santosh