Ask a Question

Accessing dropdowns within Powerbuilder DataWindow control.

syedhasan
Not applicable

Accessing dropdowns within Powerbuilder DataWindow control.

I am currently in the process of automating a legacy Powerbuilder application. I have added the "pbdw*" and "*"  window classes to the list of accepted MSAA windows, which gives me access to most of the controls in the DataWindow, but not the DropDown control or the ComboBox control.



The control is identified as DropDown or ComboBox,and has only one child ListItem. I donot see a SelectedItem value nor am able to get a list of all the child ListItems. Is there a solution  for this?



I have attached a screenshot of the Object browser window to show what I mean. 



Thanks in advance.






Syed Hasan
8 REPLIES 8
Not applicable


Hi Syed,



Maybe enabling the Tools | Options | Engines | General | Show hidden members option will help you find the target methods/properties to iterate through child items.



Is there anybody who is testing PowerBuilder apps? Have you faced a similar task? Feel free to share your solution with us.
archana_2
Not applicable

I am facing same problem.DropDown or ComboBox child items are not accessible. Even I tried with enabling "Show hidden member"
umer_chaudhary
Occasional Contributor

Hi, I'm having exact same problem with Desktop based powerBuilder application

 

I dont have any clickitem or settext function exposed to edit value for comboboxes or dropdowns within datawindow.

 

Anybody has any solutions?

Hi, Just wondering if you ever got this issue figured out? Thanks

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @russelld,

 

Very old thread....

 

I recommend that you create your own topic here and describe what you want to implement and what issues do you face. We will do our best to help you!

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



umer_chaudhary
Occasional Contributor

Hi russell,

 

I was able to handle ALL dropdowns and ComboBoxes through custom algorithm developed by using

Text Recognition + Pixel Mapping + Dropdown/ComboBoxes behavior adaptation.

 

It was a good 200+ lines of algorithm but ultimately i was able to succesfully automate PB 12.5+ applications with TestComplete. The only problem i faced was occasional non-detection of changes inside pbdw Dynamic data windows by TestComplete causing crashes at Testing Application end.

mleko
Occasional Contributor

Hi! Have you figured out that problem?

mleko
Occasional Contributor

Hi!
Would you share, how exactly your algorithm works? We are facing similiar issue and can't really get over it. 

cancel
Showing results for 
Search instead for 
Did you mean: