Ask a Question

DropDown object don't have ClickItem method.

SOLVED
mleko
Occasional Contributor

DropDown object don't have ClickItem method.

 Hi, i'm trying to test PowerBuilder application but drop downs are not working correctly. From what I found, there should be ClickItem method on dropdown object, but I can't see that method on list. I can click dropdown but then when i'm trying to click on it's object, with dropdown.child.Click(); nothing happens. I tried to map this dropdown to Win32 Controls and Windows/Combo box/ but it did not work, the message was "The selected object does not match the criteria of the "Combo box" group. 
Thank you for all your help. 

PS: I'm using JS

17 REPLIES 17
mleko
Occasional Contributor

I added wndClass as you suggested, but nothing changed. Here you have the screen how my msaa list looks like.

Best regards 🙂 

AlexKaras
Champion Level 3

Hi,

 

> dropdown is standard dynamic pb dropdown

This confirms my guess about data-bound control. 🙂

 

Well, from what I see at the x1.png screenshot, TestComplete can access list items of the dropdown itself.

Can you check and post here the relevant screenshot if TestComplete can also access the content of the qlas30.panel object ? (Drop-down table from previous screen.png screenshot.)

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
mleko
Occasional Contributor

Here you have the screens: 

AlexKaras
Champion Level 3

Thank you for the screenshots.

Well, it looks like that TestComplete cannot access table internals, can it?

This is a bit unexpected. Can you talk to developers and ask them what do they think about this and can they help with exposing table content? Maybe, something like approach described here: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/msaa/manually.htm... ?

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
mleko
Occasional Contributor

The thing is that it's visible in three view when I check object spy on closed dropdown list, when I open it and use object spy again on opened dropdown like on previous screenshot, it seems to be differrent object, without children.

AlexKaras
Champion Level 3

Hi,
 
Yes, this is what I am talking about.
I see the current situation like this:
a) TestComplete has access to the drop-down internals and can get a list of its values;
b) When you open drop-down, it creates a new window (as a direct child of application's main window) that contains a table list of drop-down values. Let's call it Table;
c) TestComplete does not have access to the Table's internals. This is strange and a bit unexpected. My guess is that this is caused by the implementation of Table is populated with data from the datasource and maybe Development can do something/provide you with some info to make Table's internals to be accessible to TestComplete;
d) Meanwhile, you may explore the functionality of the drop-down itself for one of the possible workarounds:
  -- Can you just type the value in the drop-down text field to select required list element without opening the drop-down?
  -- Maybe some native method exists either on the Methods pane or within the NativeMSAA property that you can call to select the value?
  -- Check if ListElement has some property that you can set to make this given list element to be selected in the drop-down (maybe even without been rendered on the screen).

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
mleko
Occasional Contributor

From what I found, MSAA can not recognize dynamic powerbuilder dropdowns properly, you have to find workaround if you would like to test those dropdowns.

 

Minus for testcomplete 😕

AlexKaras
Champion Level 3

Hi,

 

Consider direct question to Support via the https://support.smartbear.com/message/?prod=TestComplete form.

There are considerable chances that they will provide you with acceptable solution.

I will appreciate it if you update this thread with the result of your communication.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: