白皮书下载
Try catch
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;.





