DevExpress RibbonControl: TC cannot click on the RibbonControl items in some cases
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DevExpress RibbonControl: TC cannot click on the RibbonControl items in some cases
Hi everyone
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?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tanya!
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/....
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @TarasY,
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.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
https://tarasyaremchenko.tinytake.com/sf/MzI2OTUwMl85NzkxNzU4
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.
Regards
Taras
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Taras,
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?
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, once i get the result from the support i'll post the solution here.
Regards
Taras
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As promised, posting the last update that I have got from the support and R&D team.
They have submitted that there was the bug with the way TC handle the last versions of DevExpress RibbonControl and fixed the problem.
They have sent the hotfix for me for the testing and it seems to be working fine. I have also tested this issue on TC version 14.0.317.7 and it also works fine (seems like the fix has already been released). In the meantime, our app was upgraded to DevExpress v 18.2.6 and it also works fine.
Regards
Taras
