I'm using Delphi 10.1 Berlin and using DevExpress 16 for developing windows application. And in this I'm using TdxRibbon->TdxRibbonTab->TdxLargeButton. And when I'm trying to use Testcomplete->Display Object Spy to get the particular object details. But when I'm trying to locate the particular button details in the ribbon and I cant able to locate the specific button details and I'm getting the total panel details. With this I have attached the screen shot. And is there any method to locate the particular button as mentioned in the screen shot.
And some of them suggested to use the following link:
Implementing IAccessible Interface Support in Tested Applications. But it the full explanation is not provided for implement using Delphi. Also I got the another link from stack overlow.
But still there is no explanation for the component which I'm using.
Please provide me some help to implement this.
Not able to get the control of buttons in TdxRibbon using the TestComplete in Delphi
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not able to get the control of buttons in TdxRibbon using the TestComplete in Delphi
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ribbons and tool bars like this are such that the buttons are not individual objects themselves but are items on the tool bar. To interact with the buttons, you would use the method on the TdxRibbon of "ClickItem" which takes a parameter of either a string correponding to the item or the item index.
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
Actually how can I able to access using the Click event and I'm using TdxRibbion and TdxBarManager->TdxBar->TdxBarLargeButton. So, currently the TdxBar is fully detected. But, I need to get the control of TdxBarLargeButton which is placed in the TdxRibbon.
And I have read the above link, it does not explains clearly that how can I able to access the TdxLargeBarButton. And should I need to do the changes in Delphi code or do the changes in TestComplete?. And in the Supported DevExpress components, they have not included the TdxBarLargeButton components. And DevExpress, also replied in this link.
Please provide me the detail explanation (like I need to add extra code in Delphi or change the settings in TestComplete) to access the TdxBarLargeButton from the Spy. If possible, please mention some example. Thanks in advance.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As mentioend, the large button is not something that you're going to access... you're going to use "ClickItem" to click on the specific part of your ribbon.
So, for example, to click on "New", you'll either do something like ClickItem(0) or ClickItem("New")
The buttons themselves are not supported controls... the ribbon bar is. Hence, you work with the ribbon bar. If your object is to click on the button, ClickItem should suffice.
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
