1. 首页
  2. 文档
  3. Try catch

白皮书下载

实在智能Agent产品白皮书(7.2.0).pdf

Try catch

发刊日期:
2021/10/15

编辑团队:
实在学院

1、 Video example

 

2、 Function description

Try to execute some components. If there is an exception and an error is reported, execute another component instead.

 

3、 Attribute description

There is no need to set properties.

 

4、 Method of use

1. Execution logic

In this example, the element click in the exception capture is the search button in baidu home page. However, in the pre operation, baidu home page is not opened, and the element click component cannot find this element, so it will report an error. After using the exception capture component, no error will be reported and & ldquo; will be executed; If an execution error is found & rdquo; Embedded process.

异常捕获示例

2、Output results

If & ldquo; Try to execute & rdquo; The embedded process of runs normally. In this example, only & ldquo; Process completion & rdquo;; If & ldquo; Try to execute & rdquo; An error is reported in the embedded process of. In this example, & ldquo; Abnormal process operation & rdquo; And & ldquo; Process complete & rdquo;.

异常捕获结果

 

企业培训
技术支持
加入社群
公众号
实在智能Agent学习群
扫码关注微信公众号