Forum Discussion

shevian's avatar
shevian
Occasional Contributor
12 years ago

What's the best way to deal with GUI object?

Hello guys:



I got a problem and I really need your help.

When I operate my software, there will be several WPFObject pop-up.

And those WPFObjects are not sure,this time may be Object1,may be Object2, and so on.

In order to deal with those Objects, I have to judge whether they exists or not one by one!

I set 5sec timeout for each of them, there got a question.

It seems so foolish of me to check them one by one, and it did waste lots of time on doing this.

So how can I get rid of this?

Thanks for your help.

shevian



OS:Win7 x64 

TcVer:Tc8.70

 

1 Reply

  • ramu6309's avatar
    ramu6309
    Occasional Contributor
    HI,



    Use waitobject methods to wait for those objects.Ex:WaitButton,WaitWindow etc



    Eg: set Winow = Sys.Process("explorer").waitwindow(WndCaption,Index,TimeOut)



    Hope it solves ur problem.





    Regards,

    Ramarao