使用编码UI的手动编码来识别Windows Table Gird颜色 [英] To identify Windows Table Gird colors using Hand Coding of Coded UI

查看:72
本文介绍了使用编码UI的手动编码来识别Windows Table Gird颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用编码用户界面的手动编码识别Windows表格颜色。

To identify Windows Table Gird colors using Hand Coding of Coded UI .

我已将示例应用程序和图像附加到识别表格颜色。请帮帮我

I have attached the Sample application and Image to identify the table colors. Please help me out

https://drive.google.com/file/d/0B3NS7l7dgsTfc0Uwd01Hc2hZbms/view?usp=sharing

https://drive.google.com/file/d/0B3NS7l7dgsTfc0Uwd01Hc2hZbms/view?usp=sharing

推荐答案

朋友,

感谢您的发帖。

我刚刚捕获了Coded ui测试构建器在图像中显示的控件,不幸的是,属性中没有字体或背景颜色。

I just captured the control you showed in the images by Coded ui test builder, unfortunately, there is no font or background color in the Property.

毫无疑问,这是一个真正的限制年前:

No doubt it's really a limitation which exits since years ago:

  https://blogs.msdn.microsoft.com/gautamg/2010/03/20/how-to-validate -background-color-or-other-custom-properties-of-wpf-control-in-coded-ui-test /

并且有人建议您检测 使用特定像素颜色的颜色:

and someone suggest to detect the color by using specific pixel color:

https://stackoverflow.com/questions/ 38327038 / asserting-a-wpf-textbox-background-color-using-coded-ui-test-in-vs2015

当然,你可以去帮助 - >直接向MS开发团队发送反馈,他们可能会在将来的版本中添加此功能。

Of course, you could Go to Help -> Send feedback to MS developing team directly, they might add this feature in the future release.

 

祝你好运,

Fletcher


这篇关于使用编码UI的手动编码来识别Windows Table Gird颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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