编码的UI无法识别第二个实例上的按钮 [英] Coded UI Unable to identify the button on the second instance

查看:50
本文介绍了编码的UI无法识别第二个实例上的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将编码的ui用于我的测试自动化.在第二个实例的测试运行期间,未标识所捕获的按钮/控件.在第一个实例中,将识别并单击按钮.

I am using coded ui for my Test automation. The button/control that is captured is not identified during the test run on the 2nd instance. On the first instance the button is identified and clicked.

推荐答案

嗨SagarBM,

Hi SagarBM,

请与我们分享有关此问题的错误消息,这可能有助于我们清楚地了解您的问题,因为这可能是由多种原因引起的.

Please share us the error message about this issue, which could help us to know your issue clearly, because this could be caused by various reasons.

您可以尝试以下情形来解决此问题:

And you could try the following scenarios to troubleshoot this issue:

1).首先我们需要排除浏览器引起的原因.例如,我们需要确保浏览器最大化并且分辨率为100%.

1). First we need to exclude the reasons caused by browser. Such as we need to make sure the browser maximization and the resolution is 100%.

2).无论您是否使用public函数来标识控件,我都建议您最好使用DrawHighlight()函数来确保控件已被标识.

2). Whether you have used the a public function to identify the control, I suggest you that we had better to use DrawHighlight() function to make sure the control has been identified.

3).此测试脚本是由编码的UI测试生成器"创建的还是处理代码的.我建议您可以使用编码的UI测试生成器"来获取搜索属性,并根据这些搜索属性通过处理代码来识别此按钮.

3). Whether this test scripts created by Coded UI Test Builder or handing code. I suggest you could use the Coded UI Test Builder to get the search properties and identify this button via handing code based on these search properties.

4).如果可能,您可以与我们分享您的代码,并在其中报告错误.

4). If possible, you could share us your code and in it which place report the error.

请随时让我知道您的最新结果.

Please feel free to let me know your latest results.

此致

奥斯卡


这篇关于编码的UI无法识别第二个实例上的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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