【发布时间】:2018-12-05 05:34:01
【问题描述】:
当 UIPath 项目中发生异常时,我会发送一封包含异常信息的电子邮件。似乎有一个问题,但我只能通过查看选择器信息来查看错误发生的位置,例如:
Cannot find the UI element corresponding to this selector:
<html app='chrome.exe' title='Microsoft Dynamics GP' />
<webctrl aaname='Add' idx='1'
parentid='a00000000000000008549000000030009000000000001000000000000' tag='DIV' />
此信息和堆栈跟踪或任何其他信息对于快速找到问题的根源并没有真正的帮助。我查看了 UIPath 文档和论坛,只找到了 this question,这似乎指向使用 exception.Source 来显示发生错误的活动的名称。 exception.Source 仅返回“UiPath.Core.Activities”而不是以下示例中的“Type into Copy Job# 'INPUT'”:
这显然会导致异常处理的大问题。如何轻松返回每个异常的源代码?
【问题讨论】:
标签: automation uipath