cancel
Showing results for 
Search instead for 
Did you mean: 

DevExpress RibbonControl object not recognising some item clicks

SOLVED
Highlighted
Occasional Contributor

DevExpress RibbonControl object not recognising some item clicks

Hello,

 

I use Test Complete on a desktop app that used the DevExpress ribbControl object to navigate around the application. 

 

I am able to click on items on the ribbonControl object by using the following code:

 

Aliases["Spry"]["Main"]["ribbonControl"]["ClickItem"]("Home|Data|Table Data");

 

This will click on the "Table Data" button.

 

The problem happens for some reason, when I click certain buttons, it just gives me the following code instead of something similar to the one above.

 

Aliases["Spry"]["Main"]["ribbonControl"]["Click"](572, 123);

 

I get that when I should be receiving something like :

 

Aliases["Spry"]["Main"]["ribbonControl"]["ClickItem"](Home|Clipboard|Paste);

 

Any help would be appreciated. I'm happy to post any screenshots/GIF recordings.

 

Thanks in advance.

 

-Dan

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Valued Contributor

Hi,

Just in case, have you tried with the object windowsclass of the ribbon stored in the MSAA list ? (Project\Properties\Open application)

View solution in original post

2 REPLIES 2
Highlighted
Valued Contributor

Hi,

Just in case, have you tried with the object windowsclass of the ribbon stored in the MSAA list ? (Project\Properties\Open application)

View solution in original post

Highlighted
Occasional Contributor

Thank you,

 

Yes, adding the object WndClass to the Open Application MSAA settings did fix my issue with button recognition. 

 

It also solved some other issues I was having with test complete not recognizing buttons on a DevExpress popup menu.

 

- Dan

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors