简体   繁体   English

仅使用编码的ui无法在几台计算机上找到文本框控件

[英]Unable to find text box control on few machine only using coded ui

We are using Coded UI Tests with VSTS 2012 Ultimate. 我们正在将编码UI测试与VSTS 2012 Ultimate一起使用。 We are facing issue to identify a Text Box control which has spell check feature for words typed into the control. 我们所面临的问题,以确定其对输入到控制字拼写检查功能一个文本框控件。 This does not happen on every machine, we tried to find if any variable need to set so that it get identified but no use. 并非在每台机器上都发生这种情况,我们尝试查找是否需要设置任何变量,以便识别它但没有用。 We found nothing and we are stuck with it. 我们什么也没发现,并且坚持下去。

Please let me know if you have come across any such situation and what could be possible to this solution. 请让我知道您是否遇到任何此类情况,以及此解决方案可能会发生什么。

Please check if the visual studio 2012 has update 4 installed. 请检查Visual Studio 2012是否安装了更新4。 It was an issue with coded UI where it was not able to recognize the control based on search criteria. 这是编码的UI的一个问题,在该UI中,它无法基于搜索条件识别控件。 Updating it solved the problem for me. 更新它为我解决了问题。

//Password Email //密码电子邮件

        UITestControl uIPassword = new UITestControl(browser);
        uIPassword .TechnologyName = "Web";
        uIPassword .SearchProperties.Add("ControlType", "Edit");
        uIPassword .SearchProperties.Add("id", "login-password");

        Keyboard.SendKeys(UIPassword, "test001");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM