Ask a Question

I cannot select a object on screen even after adding the object class to MSAA option

hina
Contributor

I cannot select a object on screen even after adding the object class to MSAA option

Hi,

 

I cannot select a object on screen even after adding the object class to MSAA option. Please let me know what else can I do to achieve this.

When I record clicking the object, it just gives me the coordinates. Any help would be appreciated.

 

Thanks,

Hina

17 REPLIES 17
vinniew
Staff

Hi @hina 

 

Is it the correct MSAA pattern you are using ?

 

If you are unsure then select the astrix and rerecord your test. 

 

You could also try the same with UI Automation, add your class class

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/uia/index.ht...

 

Bare in mind the astrix may cause performance issues so its just to see if it works.

 

Now, it may be a derived class or custom class you are using. 


Check out how to add them here in the 

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/object-map...

 

We could also look at using other approaches to interact with your control, for example OCR which would be alot better than Co ordinates

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/ocr/about.html

 

Aside from that I would recommend either reaching out to your SmartBear account manager/Representative, they book a call with an engineer to have a closer look or raise a ticket with support if they have more information. 

 

KR

 

Vinnie

ebarbera
Staff

Hi @hina - 

 

Would you be able to take a screenshot and show the object spy after spying on the object? Sometimes there are ways outside of MSAA/UIA to dive deeper into the object based on the control type. 

 

Thanks, 


Emma

Hi,

 

Below is the screenshot from object spy

 

hina_0-1638892113904.png

Thanks,

Hina

I used the astrix and tried adding the class to UI Automation, nothing worked.

Hi @hina 

 

Have you tried adding custom controls to the mapped objects 

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/object-map...

 

Its difficult to tell exactly what the issue is, however mapped objects shows you what objects TC support out of the box. 

 

MSAA/UIA extends what we support out of the box. 


Using mapped objects, you can then add additional classes, perhaps classes which derive from a supported classes or custom classes etc. 

 

Try it out, see you get on. 

 

Failing I would suggest arranging a call with an engineer potentially opening a support case. 

 

It will be easier to find out whats actually happening. 


Your SmartBear rep can arrange this

 

KR

 

Vincent

Like Vincent said with UIA/MSAA,

But now could you try adding and enabling an asterisk in the Text Recognition current project property: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/...


Under ObjectMapping, the "Add Class Name", "Add from screen" and "Remove Class Name" buttons are disabled, how can I enabled them.

Hi @hina 

 

You just need to select the object name and expand the list of objects. 

 

The add/remove controls will then be selectable 


Vinnie

Also, does it matter if there are two objects with the same class name? Because I added the WndClass in MSAA, and it works for one object and doesn't work for the second object with the same class name.

cancel
Showing results for 
Search instead for 
Did you mean: