Ask a Question

Want to select on checkbox whose xpath is not captured in object spy

SOLVED
macheshmeh
Occasional Contributor

Want to select on checkbox whose xpath is not captured in object spy

I wanted to select a checkbox in a column whose object cannot be find out using object spy and we cannnot spy that column .So is there any way to click on that particular checkbox.

with my licence i cant use OCR actions

listeCoupure.PNG

until last week this test worked with

Aliases.Logic.ListeCoupureForm.lcDetail.gridControlListeCoupure.ClickRowIndicator(0);

but now i have the error message

An issue has occurred. To resolve it, contact our Support Team.
3 REPLIES 3
Marsha_R
Community Hero

It's best to contact Support as the message describes. Here's the direct link:

https://support.smartbear.com/testcomplete/message/


Marsha_R
[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
AlexKaras
Community Hero

Hi,

 

In addition to the piece of advice provided by Marsha - is this desktop or web application? If the former, didn't your Development introduce any change to the application that is not currently supported by TestComplete? (Say, component/library update or migration to another version of IDE?)

 

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
================================
macheshmeh
Occasional Contributor

I contacted to smart bear and i got this respond ( and that was amazing) 

🙂

You may be able to expose the individual elements on the menu by using MSAA. You can apply for MSAA by following these steps:

1) To use MSAA with an object, we need to use the WndClass of the object. To do so, open the object's properties in the object spy, then, under the standard view, look for "WndClass". Right-click this property and select "Copy" to copy the contents of this property. If you do not see a WndClass property, make sure your object spy is using the advanced view. There will be a blue link with the text "Show more members" if you are in the basic view, in this case click the blue link to swap to the advanced view.

2) Afterwards, go to the project properties, then go to Open Applications | MSAA.

3) Once there, select "Add" on the right side of the workspace. A new row should be added on the bottom of the list.

4) In the right column, paste the "WndClass" property. On the left column, make sure to check the checkbox.

Afterward, save the project, then refresh the object browser.

 

More Information on MSAA can be found in the following link:

https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.smartbear.com%2Ftestcomple...

 

UI Automation Approach (If MSAA doesn't work):

This approach is the same as MSAA, however, for step 2, instead, go to Open Applications | UI Automation. Every other step should however be the same.

 

More information on UI Automation can be found at the following link:

https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.smartbear.com%2Ftestcomple...

cancel
Showing results for 
Search instead for 
Did you mean: