Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
txtNewName is the name of the Alias, not necessarily the name of the object. If you want to use the WaitWPFObject method, you need to know what the name of the object is in the application source code as per the help for the method:
For the syntax that you're using and the name you have, replace WaitWPFObject with WaitAliasChild. Everything else keep the same, just change the method type.
For more information on WaitWPFObject, see http://smartbear.com/support/viewarticle/15957/
For more on WaitAliasChild, see http://smartbear.com/support/viewarticle/12497/
Name
The name of the desired object as it is specified in the tested application’s source code (the string returned by the object’s native
Nameproperty defined in theNativeClrObjectnamespace).If the name is unavailable for some reason (for example, the application developers did not specify it), use the second implementation of the method to address the desired object.
For the syntax that you're using and the name you have, replace WaitWPFObject with WaitAliasChild. Everything else keep the same, just change the method type.
For more information on WaitWPFObject, see http://smartbear.com/support/viewarticle/15957/
For more on WaitAliasChild, see http://smartbear.com/support/viewarticle/12497/