获取HP.LFT.SDK.GeneralReplayException: One or more specified arguments are not valid
,同时尝试单击 wpf 按钮(使用 LeanFT 和 Visual Studio 2015 中集成的 C#)
鉴于以下代码:
// Identify the "LicensingButton" button
var LicensingButton = objAdminApplicationModel.wnd_Adminstration.Describe<IButton>(new ButtonDescription
{
Text = @"Licensing",
ObjectName = @"Licensing"
});
// Click the Licensing button.
LicensingButton.Click();
但我越来越低于异常
Exception is HP.LFT.SDK.GeneralReplayException: One or more specified arguments are not valid.
at HP.LFT.SDK.Core.ClassModel.TestObjectExecuterBase.HandleReplayError(Int32 errorCode, IDictionary`2 data)
at HP.LFT.SDK.Core.Communication.CommunicationClient.HandleError(Action`2 onError, Int32 status, IDictionary`2 data)
at HP.LFT.SDK.Core.Communication.CommunicationClient.Send(String messageType, IDictionary`2 data, Action`2 onError)
at HP.LFT.SDK.Core.ClassModel.TestObjectExecuter.ExecuteMethod(String methodName, Object[] arguments)
at HP.LFT.SDK.Core.ClassModel.TestObjectBase.ExecuteMethod(String methodName, Object[] arguments)
at HP.LFT.SDK.ClickBehaviour.Click(MouseButton button)
at HP.LFT.SDK.UiObjectBase.<>c__DisplayClassd.<Click>b__c()
at HP.LFT.SDK.OperationExecutionWrapper.ExecuteWithEvents(ITestObject testObject, Object additionalInfo, Action innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)
at HP.LFT.SDK.OperationExecutionWrapper.ExecuteWithEvents[T1](Action innerAction, Action`1 originalMethod, T1 param1, Boolean reportOnlyOnError, ITestObject testObject, Object additionalInfo)
at HP.LFT.SDK.UiObjectBase.Click(MouseButton button)
at Admin4DM.Test.Licensing.Licensing_VerifyStaticTextDisplay() in C:\Source\Automation\Test\Licensing.cs:line 32