控件识别在VS-15编码UI中失败 [英] Control Identification fails in Coded UI VS-15

查看:79
本文介绍了控件识别在VS-15编码UI中失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我在识别编码UI中的WinWindow控件时遇到了一个奇怪的问题.问题是,识别是第一次发生,但是,在同一测试用例中,如果关闭窗口并重新打开,则相同的代码将失败.

Quite lately i'm facing a strange issue in identifying a WinWindow control in Coded UI. The issue being that the identification happens for the first time but, when in the same test case, if the window is closed and re opened the same code fails.

代码保持不变,但仅在第二次启动时失败.尝试重置代码中的播放"设置,仍然无济于事.

The code remains unchanged but is failing only on 2nd launch. Tried resetting Playback settings in the code, still of no help.

我们非常感谢您为解决该问题提供的帮助.

Any help in resolving the issue is much appreciated.

推荐答案

Karthik嗨

Hi Karthik

检查一下您的搜索/过滤器参数,听起来好像其中之一是在运行时动态分配的,您需要将其更改为qa静态属性或将其删除.

Check out your search/filter parameters for the control it sounds like one of them is dynamically allocated at run time you'll need to change it for qa static property or remove it.

HTH


这篇关于控件识别在VS-15编码UI中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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