我在我的程序中使用 Watin 系统。
我收到以下错误:
Watin.Core.Comparer
StringComparer(string comparisonValue, bool ignoreCase)的 ArgumentNullException
错误:值不能为 Null(comparisonValue)
但是我不知道谁以及何时调用了 stringcomparer,我也不知道如何调试它。
这是我的一些代码。
using (IE browser = new IE(url))
{
Trace.TraceInformation("success to create IE instance.");
int waitSecond = TimeSpan.FromSeconds(30).Seconds;
browser.WaitForComplete(waitSecond);
.........
.........
}
)
添加一些错误跟踪
at WatiN.Core.Comparers.StringComparer..ctor(String comparisonValue, Boolean ignoreCase)
at WitiN.core.DialogHandlers.DialogWatcher.HasDialogSameProcessNameAsBrowserWindow(Window window)
at WatiN.Core.DialogHandlers.DialogWatcher.HandleWindow(Window window)
at WatiN.Core.DialogHandlers.DialogWatcher.Start()
at System.Threading.ThreadHelper.ThreadStart_Context(ojbect state)
at System.Threading.ExecutionContext.Runinternal(exceutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutinoContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutinoContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()