在 Watin 脚本中,我想使用条件附加到另一个浏览器 - “新 IE 的句柄不等于当前 IE 的句柄”,这是我的代码:
var hwnd = currentIE.hWnd;
var newIE= Browser.AttachTo<IE>(Find.By("hwnd", handle => !handle.Equals(hwnd) ));
Visual Studio 发出警告:
"suspicious comparison: there is no type in the solution which is inherited from both 'string' and 'System.IntPtr'
这里有什么问题?