Micro Focus QTP (UFT) Forums

Full Version: Not able to get the list of items in Delphi Combobox Environment Object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Folks,

In below line of code, as this is combo box in Delphi Environment of desktop application, i want to get all the values that is currently available in this combo box. Am not able to do so as no such property is there that is holding the list items in this combo box object.
It have all items property but after spying it showing no value;

Window("ABC").DelphiWindow("ChiidABC").DelphiComboBox("SubChildABC"),GetROProperty("?")---> which property shall i use ?
i have tried so far "all Items", "text", "items count", "rows"
but it didn't work.

PF below object property of this object(DelphiComboBox("SubChildABC")) through Object Spy.
********************************************************************************
"Class Name:=DelphiComboBox",
"abs_x:=102",
"abs_y:=460",
"all items:=",
"delphi_name:=cmbGeneral10EV__1",
"enabled:=True",
"focused:=False",
"height:=21",
"hwnd:=67488",
"items count:=0",
"nativeclass:=TADBLookupCombo",
"regexpwndclass:=TADBLookupCombo",
"regexpwndtitle:=",
"rightaligned:=False",
"righttoleftlayout:=False",
"righttoleftreading:=False",
"selection:=",
"testobjgentype:=list",
"text:=",
"visible:=True",
"width:=128",
"window id:=0",
"windowextendedstyle:=512",
"windowstyle:=1442906176",
"x:=106",
"y:=464"
*********************************************************************************
Though, in  a web application, we have "all Items" property that we can use to get list as below but here it;s not useful.
Browser("ABC").Page(:"ChiidABC").WebList("SubChildABC").GetRoProperty("all items")

I searched a lot on this site and other places but didn't get anything relevent. 
Please help at earliest guys, i need it for my project work.
(08-12-2019, 05:53 PM)Raj Aryan Singh Wrote: [ -> ]Hi Folks,

In below line of code, as this is combo box in Delphi Environment of desktop application, i want to get all the values that is currently available in this combo box. Am not able to do so as no such property is there that is holding the list items in this combo box object.
It have all items property but after spying it showing no value;

Window("ABC").DelphiWindow("ChiidABC").DelphiComboBox("SubChildABC"),GetROProperty("?")---> which property shall i use ?
i have tried so far "all Items", "text", "items count", "rows"
but it didn't work.

PF below object property of this object(DelphiComboBox("SubChildABC")) through Object Spy.
********************************************************************************
"Class Name:=DelphiComboBox",
"abs_x:=102",
"abs_y:=460",
"all items:=",
"delphi_name:=cmbGeneral10EV__1",
"enabled:=True",
"focused:=False",
"height:=21",
"hwnd:=67488",
"items count:=0",
"nativeclass:=TADBLookupCombo",
"regexpwndclass:=TADBLookupCombo",
"regexpwndtitle:=",
"rightaligned:=False",
"righttoleftlayout:=False",
"righttoleftreading:=False",
"selection:=",
"testobjgentype:=list",
"text:=",
"visible:=True",
"width:=128",
"window id:=0",
"windowextendedstyle:=512",
"windowstyle:=1442906176",
"x:=106",
"y:=464"
*********************************************************************************
Though, in  a web application, we have "all Items" property that we can use to get list as below but here it;s not useful.
Browser("ABC").Page(:"ChiidABC").WebList("SubChildABC").GetRoProperty("all items")

I searched a lot on this site and other places but didn't get anything relevant. 
Please help me guys, i need it for my project work.
HI I am Facing on Issue
Is there any way to click button or Close icon on WpfTable(Windows Application)
Its Identifying as whole table , not identifying as individual objects
(12-12-2019, 07:05 PM)Ashok Maddineni Wrote: [ -> ]HI I am Facing on Issue
Is there any way to click button or Close icon on WpfTable(Windows Application)
Its Identifying as whole table , not identifying as individual objects

Hi Ashok,

I have not worked on Windows Presentation Foundation application though there are few links i found on google, that i am not able to paste here may be due to some policy issue on this forum. please just check on google as "[UFT] [WPF] Table: how simulate Click and DBLClick event" and see if is useful.