QuestionQ144

VerifiedException Handling

Consider these automation steps:

  1. Open the web browser.
  2. Scrape the data.
  3. Store the data in Microsoft Excel.
  4. Close the web browser.

According to UiPath best practices, which section of a Try Catch activity ensures that Step 4, closing the web browser, runs regardless of exceptions that occur in Step 2, data scraping, or Step 3, storing data in Microsoft Excel?

Explanation

The Finally block is used for cleanup activities after the Try and Catch blocks execute. Placing browser closure there ensures the browser is closed after normal processing or after an exception is handled by a Catch block.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!