Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
You're using a single property and value for finding your object. You might be better off using an array of properties and subsequent values. (see the article http://smartbear.com/support/viewarticle/11728/).
So, you might end up with something like
Of course, not knowing your object, this is just a mock up to demonstrate. The more properties and values you use, the more you can narrow down your search parameters. The art is finding JUST the right combination where you're not using as few properties as possible and still guarenteeing a successful find.
Might I suggest you replace Find with FindChild since you're looking specifically for a child object? See http://smartbear.com/support/viewarticle/11716/
So, you might end up with something like
var table= Sys["Find"](["Name","Caption", "[\"SwingObject\", "MyTable"](\"GenericTable\", \"\", 0)", 20000, true);
Of course, not knowing your object, this is just a mock up to demonstrate. The more properties and values you use, the more you can narrow down your search parameters. The art is finding JUST the right combination where you're not using as few properties as possible and still guarenteeing a successful find.
Might I suggest you replace Find with FindChild since you're looking specifically for a child object? See http://smartbear.com/support/viewarticle/11716/
Related Content
- 6 years agokrogold
- 8 years agoAlexBorelli
Recent Discussions
- 24 hours agoMW_Didata