I am developing C# winform application. I have Ribbon in my form which contains several tabs and several ribbonbuttons. I am using Coded UI for testing. The problem i am facing is i am unable to find the ribbonbuttons using coded ui, whenever i hover on any control of ribbon (say ribbonbutton), it detects only ribbon but not that control. Can any one suggest whether ribbon controls supports Coded UI for testing? If yes, then how can i do so?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
There is another ribbonbar inside the ribbonbar you found.
Here is my code: File tab Open button
Assuming that Pal Bognar's answer is correct, I would recommend creating your own reusable type for this situation. Here is an example. It would be simple to make this more generic and have sub-classes with the actual buttons and menu tabs available in each instance.