cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to handle a Frame in Desktop application

SOLVED
Highlighted
Occasional Contributor

Unable to handle a Frame in Desktop application

 
 
 
 

Generally, Dropdown items will be captured in an array format, by which we will be able to get all item properties and methods. But for this object, it displays the objects in Frame as like below, and we are unable to fetch the properties like wItemcount, wItems, WItemText, etc.

Object: 

Sys.Process("application").VBObject("frmMain").VBObject("applicationesktop1").VBObject("ucDropDownMenu1").VBObject("FraMenu")

 

The image of the frame is given below.

 

frame.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Unable to handle a Frame in Desktop application

Hi,

 

Then I would talk to developers and ask them what control was used for this combo-box. It well might be not a standard combo-box but, say something custom or even COM- or ActiveX component.

 

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

11 REPLIES 11
Highlighted
Community Leader

Re: Unable to handle a Frame in Desktop application

Hello,

 

If you are not able to add a particular class to help TestComplete read these values, I suggest you to:

 

enable Text Recognition ->

find all TextObjects inside this drop-down list ->

put it inside Array ->

and you are ready to work.

Highlighted
Community Leader

Re: Unable to handle a Frame in Desktop application

Can you please post the Object spy snap.

 

Try finding any property like Items? or anything related.

But as Wamboo suggested I think text object should also work as last option.

Highlighted
Occasional Contributor

Re: Unable to handle a Frame in Desktop application

Thanks for the reply. Let me try and come back to you

Highlighted
Occasional Contributor

Re: Unable to handle a Frame in Desktop application

This isn't actually a dropdown, its more like a frame. Let me try the steps you given and come back to you. Thanks.

 

Highlighted
Community Leader

Re: Unable to handle a Frame in Desktop application

Did it work?

Highlighted
Occasional Contributor

Re: Unable to handle a Frame in Desktop application

Sorry for the delay, I still couldn't able to get the text of the objects through any type

Highlighted
Community Leader

Re: Unable to handle a Frame in Desktop application

Highlighted
Community Hero

Re: Unable to handle a Frame in Desktop application

Hi,

 

Sys.Process("application").VBObject("frmMain")

What language the tested application is developed with? Is this pure old VisualBasic or VB .Net ?

 

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

Re: Unable to handle a Frame in Desktop application

Hi,

Yes, This is a pure VisualBasic application

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors