Forum Discussion

levi_bryant's avatar
levi_bryant
Contributor
12 years ago

Better way to deal with a list of WaitObjects

Sometimes I have a large list of Objects that are required to get to the object that I really need to use. Sometimes one of the objects int the list will not exist. If one of those objects does not ex...
  • TanyaYatskovska's avatar
    12 years ago

    Hi Levi,


     


    The Wait methods require using the timeout parameter. Otherwise, they don't differ from the WPFObject methods.


    For example:




    if(WaitWPFObject("object1", 5000).Exists)


          Var MyObject = WPFObject("object1").WPFObject("object2").WPFObject("object3)...