Forum Discussion

prakash_vasudev's avatar
prakash_vasudev
Contributor
13 years ago

XTPPopupbar not being supported

In our application we have customized "XTPPopupbar" to be dropdown menu which opens up after clicking on main menu. Right now this control does not have full support from TestComplete and because of this we have made this to work using text recognition. Each text object has certain properties like Enabled, Exists and Visible and VisibleOnScreen etc. We are trying to get the "Enabled" property of a certain text object which is under XTPPopupbar control, but no matter what if the text is enabled or not it return us true. It seems like it is not working as expected. Is there a way to get this one working??


A screen capture of the control has been attached with this post for reference.


We are using TestComplete Version 8.20.538.7

2 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi, Prakash.


    Right now this control does not have full support from TestComplete and because of this we have made this to work using text recognition.


    Yes, right now TestComplete does not provide full support for this control. However, you can let us know that this support may be useful for you by voting on our web site: TestComplete Feature Survey. We'll analyze the responses and focus our efforts on the most requested controls.


    We are trying to get the "Enabled" property of a certain text object which is under XTPPopupbar control, but no matter what if the text is enabled or not it return us true. It seems like it is not working as expected.


    The fact is that the Enabled property works correctly in the situation you've described. The text object (from which you are trying to get this property) is considered a non-window control by TestComplete. In case of such objects, the value of the Enabled property equals the Enabled property of the window control that contains this text object (in your case it is the popup menu control). So, as far as your popup menu is always shown under the condition Enabled=true, all text objects that belong to this control have the same value of the Enabled property.


    BTW, you can also work with this control via MSAA. For this purpose, add the XTPToolBar and XTPPopupBar class names to the list of accepted MSAA windows. Please refer to the Using Microsoft Active Accessibility help topic for more information.