ckim
11 years agoOccasional Contributor
Scripting without Aliases
Hey All,
I'm currently testing an application where I can record scripts and the name mapping will work. However, when I quit the application and try to rerun the scripts I recorded, most of them produce the "Ambiguous recognition of the tested object" warning which then leads to the "Object does not exist" error. I read in a separate thread (http://smartbear.com/forums/f74/t90568/what-is-the-best-approach-for-scripting-with-na/) that you can find objects dynamically by using Find, FindChild, etc. with object properties. This seems like what I'm looking for because I'm pretty sure that everytime I close and reopen my application the properties of various objects change and in turn breaks the name mapping of my test project. Could someone help clarify how the Find methods work in getting objects during testing?
Thank You,
Chris
I'm currently testing an application where I can record scripts and the name mapping will work. However, when I quit the application and try to rerun the scripts I recorded, most of them produce the "Ambiguous recognition of the tested object" warning which then leads to the "Object does not exist" error. I read in a separate thread (http://smartbear.com/forums/f74/t90568/what-is-the-best-approach-for-scripting-with-na/) that you can find objects dynamically by using Find, FindChild, etc. with object properties. This seems like what I'm looking for because I'm pretty sure that everytime I close and reopen my application the properties of various objects change and in turn breaks the name mapping of my test project. Could someone help clarify how the Find methods work in getting objects during testing?
Thank You,
Chris
- Hi Chris,
To see the full object tree, make sure Show Tested Applications Only is disabled and Show All User Processes is enabled and in the Object Browser toolbar:
Please refer to the "Object Browser Toolbar" article for details.
Also, I recommend that you read the "About Object Browser" article and those related to learn how to explore your tested application.