Ask a Question

.Net Desktop App Object Spy cannot find sub Item

SOLVED
mustafayol
Occasional Contributor

.Net Desktop App Object Spy cannot find sub Item

Hello,

 

my company is using Test Complete Desktop version for a long time and now I am taking over some responsibilities on desktop testing, after a long WEB, Mobile app experience. 

 

My question is when I spy on the specific sub-menu item, object spy can only detect the parent, and not very good at narrowing down the sub-elements. Any idea what can I do?

For example, it is not possible to detect File, Edit, or Window? 

mustafayol_0-1615989489312.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
AlexKaras
Community Hero

Re: .Net Desktop App Object Spy cannot find sub Item

Hi,

 

Depending on what controls are used by your tested application, you may consider to check that corresponding extension is enabled (File | Install Extensions...) and/or enable/adjust settings for MSAA and UI Automation (Project Properties | Project | Open Applications | MSAA/UI Automation).

Also, if developers are using composite controls, you may consider to adjust Project Properties | Project | Open Applications | WPF settings.

 

Also, check that 'Pre-Release...' text on the top-right corner is identified as a separate object. The case is that quite often menu items can be accessed either as an elements of, say, Items property of the menu object (e.g. menu.Items(0).Click) or as, say, menu('File').Click. But I would like to ensure that menu object itself is identified correctly. And this 'Pre-Release...' text looks like a separate text control which should be separately identified by Object Spy/in Object Browser.

 

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
================================

View solution in original post

mustafayol
Occasional Contributor

Re: .Net Desktop App Object Spy cannot find sub Item

Oh my God, it works :)))

 

mustafayol_0-1615993473227.png

 

View solution in original post

2 REPLIES 2
AlexKaras
Community Hero

Re: .Net Desktop App Object Spy cannot find sub Item

Hi,

 

Depending on what controls are used by your tested application, you may consider to check that corresponding extension is enabled (File | Install Extensions...) and/or enable/adjust settings for MSAA and UI Automation (Project Properties | Project | Open Applications | MSAA/UI Automation).

Also, if developers are using composite controls, you may consider to adjust Project Properties | Project | Open Applications | WPF settings.

 

Also, check that 'Pre-Release...' text on the top-right corner is identified as a separate object. The case is that quite often menu items can be accessed either as an elements of, say, Items property of the menu object (e.g. menu.Items(0).Click) or as, say, menu('File').Click. But I would like to ensure that menu object itself is identified correctly. And this 'Pre-Release...' text looks like a separate text control which should be separately identified by Object Spy/in Object Browser.

 

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
================================

View solution in original post

mustafayol
Occasional Contributor

Re: .Net Desktop App Object Spy cannot find sub Item

Oh my God, it works :)))

 

mustafayol_0-1615993473227.png

 

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: