【发布时间】:2011-11-18 17:49:56
【问题描述】:
我正在尝试使用 Visual Studio 2010 对我的 Silverlight 应用程序进行自动化 UI 测试。我的应用程序上有一个 dataPicker。我在播放录制动作时,日期未选择。
返回错误:
Test method CriarRequisicao3.comparar5.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException:
Another control is blocking the control. Please make the blocked control visible and retry the action.
Additional Details:
TechnologyName: 'Silverlight'
ControlType: 'Button'
AutomationId: 'Button'
---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003"
The code that VS2010 generate for this step is:
// Select '18-Nov-2011' in 'dp_DesiredDate' date picker
uIDp_DesiredDateDatePicker.SelectedDateAsString = this.RecordedMethod14Params.UIDp_DesiredDateDatePickerSelectedDateAsString;
我做错了吗?
【问题讨论】:
-
我记得在某处看到日期选择器控件存在已知问题。不过,我目前似乎找不到它的链接。
标签: c# visual-studio-2010 silverlight datepicker coded-ui-tests