编码的UI不适用于新版本的Microsoft RibbonControlsLibrary.dll [英] Coded UI does not work with new version of Microsoft RibbonControlsLibrary.dll

查看:96
本文介绍了编码的UI不适用于新版本的Microsoft RibbonControlsLibrary.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个编码的UI测试,该测试曾经用于RibbonControlsLibrary的最新版本,但是当我更新到最新版本(4.0.0.11019)时,它停止工作.使用编码的ui测试构建器或Inspect Objects工具,都无法在其中找到RibbonButtons 除最后一个选项卡外的任何选项卡.当我将鼠标悬停在任何其他选项卡上的功能区按钮上时,似乎认为最后一个选项卡标题是我所经过的对象.

我可以使用RibbonControlsLibrary附带的示例(如RibbonWindowSample_v40)重现此内容.我的机器是Win7 64位.

谢谢

帕特里克·圣诞节


PC

解决方案

PJChristmas,

我在编码UI测试方面经验不足,但是我认为WPF的Ribbon的结构与正常的WPF控件不同.我只是通过UISpy工具从最新功能区版本的项目模板中检查了一个空的WPF功能区应用程序 (Windows SDK中的工具).下面是元素图:

ppF1B

"都无法在除最后一个选项卡以外的任何选项卡中找到RibbonButtons.当我将鼠标悬停在任何其他选项卡上的功能区按钮上时,似乎认为最后一个选项卡标题是我所经过的对象.据我所知,RibbonTab和TabControl都只是 因为RibbonTab/TabControl的模板只有一个内容演示者来显示TabItemcontent,所以它在其中显示了当前的TabItem内容.因此,如果TabItem到当前所选项目不为n,则元素树不包含  TabItem.

如果您有任何疑问,请随时让我知道,有关编码的UI测试问题,MSDN Visual Studio UI自动化测试(包括CodedUI)论坛可能对您有帮助,谢谢. /p>

此致


I have a coded UI test that used to work with the last version of RibbonControlsLibrary, however when I updated to the latest (4.0.0.11019) it stopped working. Using the coded ui test builder or the Inspect Objects tools, neither can find RibbonButtons in any tab except the last one. When I hover over a ribbon button in any other tab, it seems to think the very last tab header is the object I am over.

I can reproduce this with the examples that ship with the RibbonControlsLibrary - like RibbonWindowSample_v40. My machine is Win7 64 bit.

Thanks,

Patrick Christmas


PC

解决方案

Hi PJChristmas,

I do not have many experience on Coded UI Test, but I think the structure of the Ribbon for WPF is different with the normal WPF control. I just check an empty WPF Ribbon Application from the project template of the latest Ribbon version by UISpy tool (a tool from Windows SDK). Below is the elements diagram:

"neither can find RibbonButtons in any tab except the last one. When I hover over a ribbon button in any other tab, it seems to think the very last tab header is the object I am over." As far as I know, both RibbonTab and TabControl, just shows the current TabItem content in the it, since the Template of the RibbonTab/TabControl has only one content presenter to show the TabItemcontent. So if a TabItem is nto the current selected item, the element tree does not contain the TabItem.

If you have any concern, please feel free to let me know, and regarding to the Coded UI Test questions, MSDN Visual Studio UI Automation Testing (includes CodedUI) forum may help you, thank you.

Sincerely,


这篇关于编码的UI不适用于新版本的Microsoft RibbonControlsLibrary.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆