求解:调用的目标发生了异常。 Exception in Mouse.Action,目标元素的对应 UI 不再可用(例如,父窗口已关闭)。

康康 2019-7-11 1847

调用的目标发生了异常。 Exception in Mouse.Action,目标元素的对应 UI 不再可用(例如,父窗口已关闭)。 在 MS.Internal.AutomationProxies.Misc.ThrowWin32ExceptionsIfError(Int32 errorCode) 在 MS.Internal.AutomationProxies.Misc.GetWindowRect(IntPtr hwnd, Win32Rect& rc) 在 MS.Internal.AutomationProxies.ProxySimple.get_BoundingRectangle() 在 MS.Internal.AutomationProxies.ProxySimple.System.Windows.Automation.Provider.IRawElementProviderFragment.get_BoundingRectangle()


我一个脚本,重复运行第三次,就会有这个问题。

请问这是什么意思? 如何处理?



最新回复 (3)
  • 薇~ 2019-7-12
    2
    已经将您的问题反馈给相关的技术人员~稍后给您答复~
  • 康康 2019-7-12
    3
    感觉是UIBOT关闭程序的时候,重复到第三次,就把父窗体也关闭了。
  • 薇~ 2019-7-12
    4

    查看鼠标点击目标信息是否发生改变。

返回
发新帖