编码的UI:如何在频繁的Windows更新发生后使常量脚本工作? [英] Coded UI: How to have constant scripts that work even after frequent windows updates happen?

查看:60
本文介绍了编码的UI:如何在频繁的Windows更新发生后使常量脚本工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我为相机,日历,计算器等Windows功能编写了自动化脚本.......这里我的问题是在Windows更新,UI更改之后,控制名称更改,我必须再次使用交叉头发工具来捕获控件并编写脚本。


任何人都可以为我提供解决方案而无需每次在Windows更新功能后编写脚本吗? / p>

提前致谢。


问候,


A.Manoj kumar。


解决方案

我要做的是尝试识别包含正在更改的控件的更高级别的容器。希望容器名称不会改变,或者尝试更高容器。然后看看你是否可以通过
控件的类型或一些不太可能改变的其他属性来识别你需要的控件。示例:


窗口 - >容器1 - > UI控件


获取Container1的属性,因为您提到的更新不太可能发生更改。


Hi,

I wrote automation scripts for windows features like camera,calendar,calculator.......Here my problem is after windows updates,UI changes,control names changes and I have to again use cross hair tool to capture the controls and write the scripts.

Can anyone provide solution for me without writing scripts every time after windows updates for features?

Thanks in advance.

Regards,

A.Manoj kumar.

解决方案

What I would do is try to identify a higher level container that contains the controls that are changing. Hopefully the container name will not be changing, or try even a higher container. Then see if you can identify the control you need by the type of control or some other property that is unlikely to change. Example:

Window -> Container1 -> UI Control

Get the properties for Container1 as that is less likely to change due to an update like you mentioned.


这篇关于编码的UI:如何在频繁的Windows更新发生后使常量脚本工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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