一个控制器阻止另一个控件 [英] One contol is blocking another control

查看:68
本文介绍了一个控制器阻止另一个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我尝试运行我的codedUITest在我的编辑框中设置一些文字时,我收到以下错误:

When I am trying to run my codedUITest to set some text in my edit box I get the following error:

Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException:另一个控件阻止控件。请使阻止的控件可见并重试操作。

Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Another control is blocking the control. Please make the blocked control visible and retry the action.

Thanx

推荐答案

此例外是当播放无法操作/单击控件但搜索通过时抛出。以下是其中一个示例

This exception is thrown when playback is not able to act/click on the control but the search is passed. Following is one of the example

打开记事本并打开文件打开对话框。现在,如果您手动尝试单击记事本UI中的文本框/菜单项,除非您关闭对话框,否则无法进行操作。

Open notepad and open file open dialog in it. Now if you manually try to click on textbox/menu items inside notepad UI it is not possible unless you close the dialog box.

请检查是否有某个模态对话框出现或您控制的是存在于视口中,即不滚动。

Please check if there is some modal dialog appearing or you control is present in the view port i.e., not scrolled out.


这篇关于一个控制器阻止另一个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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