官术网_书友最值得收藏!

Handling exceptions

If there is an unexpected exception or error, then the bot should ensure that we bring the target application to a stable state where it can proceed with the next transactions. The following few steps guarantee this:

  1. Within the Else block, to ensure that the target application is in a stable state, we will attach an element on the screen to the browser. Let's add a new Attach Browser activity to handle the error handling activity in the already opened Chrome browser:

  1. On the properties side of Attach Browser, update Browser with the ZohoBrowser variable and set the BrowserType as Chrome to continue to use the same browser session:

  1. Add a Mouse Click activity to the newly created sequence and click on Indicate element inside the browser. Then, go to the browser, and click on the TICKETS menu option in the top left-hand corner of the Zoho desk screen:

This step will enable automation to get control of the home page of the web application if a ticket has not been created.

This completes the Try block. Now, let's handle any system exceptions. 

  1. Moving out of the overall Try block, let's update the Catches block. Add a new catch of the System.exception type to the Catches block. Copy the error handling sequence that we added in the Else block and paste it into this Catches block:

So we have now completed the web (Zoho Desk) automation as well. Here, we took the request data and incorporated it into Zoho Desk. Finally, we will go to the main workflow, invoke this workflow, and finalize the automation.

主站蜘蛛池模板: 澜沧| 手游| 湖口县| 固阳县| 乐平市| 泸州市| 琼结县| 托里县| 扎鲁特旗| 长泰县| 沙坪坝区| 库尔勒市| 深州市| 扶余县| 漳平市| 沁阳市| 安福县| 福州市| 安康市| 城固县| 峨眉山市| 墨竹工卡县| 大渡口区| 绥宁县| 泗洪县| 通化市| 永德县| 吉安县| 荃湾区| 屏山县| 呼和浩特市| 敦化市| 清苑县| 平利县| 济南市| 洛扎县| 神池县| 闽侯县| 淳化县| 汾西县| 五大连池市|