Ask a Question

Unable to handle a Frame in Desktop application

SOLVED
Mohamed1
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

11 REPLIES 11
Wamboo
Community Hero

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.

anupamchampati
Frequent Contributor

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.

Mohamed1
Occasional Contributor

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

Mohamed1
Occasional Contributor

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

 

Did it work?

Mohamed1
Occasional Contributor

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

AlexKaras
Champion Level 2

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 Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
Mohamed1
Occasional Contributor

Hi,

Yes, This is a pure VisualBasic application

cancel
Showing results for 
Search instead for 
Did you mean: