I'm automating my application that is using the RibbonControl from the DevExpress.
There is a problem with clicking the RibbonControl items when I manually select the tab in the Ribbon control after that TestComplete cannot click the items in selected tabs.
When the additional tab is closed it works fine.
I have tried to record the test and it seems like it just cannot recognize anything, it even doesn't try to click by coordinates.
Watch the video attached, it will give you more information about the problem.
As you can see in the video, the recording did the first click on Config button, then it detects the click on the Home tab, but when i clicked on the Config button again, there is no any code added for this.
TestComplete version 12.50.4142.7
DevExpress version in the tested app is 18.2.3
How to handle this case? Is there anything I can do in the TestComplete to fix the problem? Or are there any changes required in the tested app?
Based upon https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/devexpr..., TestComplete 12 only completely supports DevExpress 18.1.3. you're running a newer version of the DevExpress controls so I would expect there to be some problems. I'd suggest you contact SmartBear support to confirm and to inquire about future support.
What exact RibbonControl do you use? Please check its class name. After that, refer to the Object Mapping dialog and make sure that this class name is specified under the DevExpress controls.
The class name is DevExpress.Xpf.Ribbon.RibbonControl. The control is listed in the DevExpress controls https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/....
Thanks for checking this.
According to the video you posted, TestComplete uses the UI Automation feature to map your control (the mapped object is named as hwndsource_shellView). This approach is recommended to use only for the app and controls that don't have special support in TestComplete. As your control is the support one, let's use another approach.
First of all, let's check if TestComplete recognizes your app correctly (as an Open application). For this, go to the project settings and open Open Applications | UI Automation window. I suppose * is checked, right? Uncheck it.
After that remove all mapped objects in Name Mapping, go to the Object Browser, expand the object tree of your app to navigate to the ribbon control, make an image of this window and post it here.
I have created a new project to test this one.
The * option in the UI automation is disabled in my project as well as in the new project that I have created.
The application is recognizable, as you can see in the screenshot:
I have tried the same code with an older version of my tested app where the older version DevExpress used and it works perfectly. So, seems like the problem that TC cannot work properly with the newer DX RibbonControl.
I have created the support case as @tristaanogre has proposed but I haven't received any reply yet. They asked me to try this issue in the latest version of TC14 but the problem is still the same.
Thanks for your reply anyway.
Thanks for the information.
I don't see any recognition issue with your app. I think it's worth waiting for the solution from the Support Team. I suppose some investigation is required here.
Could you please share the solution with us once you get it?
Yes, once i get the result from the support i'll post the solution here.