Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
6 years ago
Solved

find element by view id and wait for object exist or enabled.

need an example for find element by view id and wait for object exist or enabled...also want to know... ViewId becomes unique for every element or not
  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi,

     

    > what is the mean by <value> and <depth>

    These are the parameters for the .FindChildEx() method. Check the documentation for their description and use the actual values that are relevant for your given application and needs.

     

    For example, this line of code may look like this:

    var obj = root.FindChildEx('ViewId', 'abc123', 50, 30000);

    which means that it will try to find the object with the ViewId property that equals to the 'abc123' string for 30 seconds searching 50 levels deep starting from the <root> object.