I cannot select a object on screen even after adding the object class to MSAA option
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Below is the screenshot from object spy
Thanks,
Hina
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used the astrix and tried adding the class to UI Automation, nothing worked.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @hina
Have you tried adding custom controls to the mapped objects
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Under ObjectMapping, the "Add Class Name", "Add from screen" and "Remove Class Name" buttons are disabled, how can I enabled them.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
