Micro Focus QTP (UFT) Forums
Not able to get the list of items in Delphi Combobox Environment Object - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to get the list of items in Delphi Combobox Environment Object (/Thread-Not-able-to-get-the-list-of-items-in-Delphi-Combobox-Environment-Object)



Not able to get the list of items in Delphi Combobox Environment Object - Raj Aryan Singh - 08-12-2019

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.


RE: Not able to get the list of items in Delphi Combobox Environment Object - Raj Aryan Singh - 12-12-2019

(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.



RE: Not able to get the list of items in Delphi Combobox Environment Object - Ashok Maddineni - 12-12-2019

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


RE: Not able to get the list of items in Delphi Combobox Environment Object - Raj Aryan Singh - 02-04-2020

(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.