12-12-2019, 03:36 PM
(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.