Hi,
> From what I found, there should be ClickItem method on dropdown object
I checked the help and I am not sure that is is true for PowerBuilder application. Can you provide the source of why do you think so?
> I tried to do something like that :
> wndFNWND3126.MDIClient.wndFNWND3126.panelNone.dropdownProductId2.Click();
> wndFNWND3126.MDIClient.wndFNWND3126.panelNone.dropdownProductId2.FindChild(2).Click();
> but it doesn't work also.
Well... From what I see on the screenshot, I assume that you did not alter Aliases tree and use it as it was created during namemapping.
If my above assumption is correct, then it looks like that the dropdown is not regular Windows dropdown, but a kind of composite control that opens not a list but a table of values.
I think so because the dropdown object corresponds to the
Aliases.glas30.wndFNWND3126.MDIClient.wndFNWND3126.panelNone.dropdownProductId
tree node, while the opened table of values corresponds to just
Aliases.glas30.panel
node. I.e. it is direct child of the main application's window. This is often the case for data-bound controls, when the list of possible values is obtained from some data source during runtime and the list of values is created dynamically. Ask your developers if this is the case.
I would suggest the following:
a) Talk to your developers and ask them if they used standard PowerBuilder's dropdown control or tweaked it in some way. If the latter, then maybe they can provide you with some recommendations of how selection from the table of values can be done;
b) Check how the opened table of values is identified in TestComplete's Object Browser. Is it identified as one object without any children or TestComplete can process its internal structure (like on the screenshot provided in the help article referenced by Tanya).