cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to find unique properties in the desktop application,where app is developed using VisualC++

Highlighted
Occasional Visitor

Not able to find unique properties in the desktop application,where app is developed using VisualC++

Not able to identify the unique property and add it as object, because all the text boxes in the window are showing Edit boxes, does not have any specific names

 

The object's full name shows like below

 

image1.PNG

 

When one element is added into name mapping, for other element also its showing previous ones name and notallowing it to add, saying like element is already exists

1 REPLY 1
Highlighted
Community Hero

Re: Not able to find unique properties in the desktop application,where app is developed using Visua

Hi,

 

In 99% of cases when the tested application does not provide unique identifiers for controls and you cannot convince developers to add them, you are out of luck and the only way is to use the Index (third attribute of the .Window() method) to distinguish between different controls of the same class.

(Yes, this may be fragile depending on your tested application. But may appear to be quite stable if application's UI is stable as well.)

For the remained 1%, depending on your tested application, you may consider:

-- To implement some euristic when, say, you will search for some label and then search to the right of it for the Edit control;

-- Try to use Required Child functionality in NameMapping (though I am far not sure that edit boxes have any child objects);

-- Play with the new OCR functionality in TC 12.60 Beta (https://community.smartbear.com/t5/TestComplete-General-Discussions/TestComplete-Beta-Program-Try-AI...) and see if helps.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Top Kudoed Authors