Forum Discussion
Actually, there is a way of turning off the warning. If you go to name mapping and right click in the properties panel for the object in question. You'll get the following dialog.
Uncheck the indicated item and, for that object, you'll no longer get that warning.
However, if I may add, the mapping properties you have for the object in question are insufficient for unique identification.
First of all, I wouldn't use the "Enabled" or "Exists" property for an object identification. If you want to wait for an object to be enabled, use a WaitProperty method off the object and check for "Enabled" = true. For object existance, I would use "WaitAliasChild" to retrieve the object via the Alias and then check "If object.Exists".
Secondly, if there is more than one item on the page with a class that matches btn*, it will find whatever the first one is.
If there is a caption, contentText, innerText, or some other property, that would probably be better to include in the properties to identify the object. Maybe an ObjectIdentifier or an idStr property as well. The warning is there to tell you that your mapping found something but that, because of the properties you've selected, it couldn't find your EXACT item but found something similar.
Hi Robert!
I know about this feature, but it does not work for me. Don't know why.
Right now I have created a simple test, which should type few symbols into the some Editor.
I unchecked "Show Ambiguous Recognition Warning" item for the mapped element (wndTkTopLevel), then ran the test and received again this warning to the log:
- pyatakov8 years agoOccasional Contributor
Hi!
Please try this
1. Disable in NameMapping - the option "Extended Find" on the object (in 'Mapping object' panel)
2. Before start test - for the TestComplete window to set the smallest size
3. During test, try set focus on the parent object or on the web page.
Is it work?
- baxatob8 years agoCommunity Hero
pyatakov wrote:
3. During test, try set focus on the parent object or on the web page.
Can you explain in details what did you mean?
- pyatakov8 years agoOccasional Contributor
baxatob wrote:
pyatakov wrote:3. During test, try set focus on the parent object or on the web page.
Can you explain in details what did you mean?
This mean that when you see some object on form even with a flashing carriage it does not mean you can do some action with this object at once, you MUST set focus on this object
F.e. when you see some edit on form, before, you can write some text in edit, you MUST CLICK left mouse button on edit and THAN you can write some text in edit
Related Content
- 8 years ago
- 6 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago