- (Topic 2)
What will be executed in the following Try Catch activity if the required selector for Click activity is not found?
Catch block contains catches in the following order:
* 1. System.SystemException
* 2. System.Exception
* 3. UiPath.Core.SelectorNotFound
Please find below the properties of the Click activity
Correct Answer:
D
There can be multiple Catches and, in case of an exception, only the
most specific Exception will be caught and its handler executed. In this case, UiPath.Core.SelectorNotFound is the most specific exception.
Activities in Finally to be performed after the Try and Catches blocks are executed. This section is executed only when no exceptions are thrown or when an error occurs and is caught in the Catches section. So in this case, Finally block is executed, as the exception was caught.
UiPath Documentation Geekhours
Exam Topic: Identify and describe the use of the error handling activities such as Try Catch, Throw, Rethrow, Retry Scope, and Global Exception Handler
- (Topic 2)
A developer implemented a Dispatcher process using the Robotic Enterprise Framework to upload items to a queue.
According to the requirements from the Finance team, all items with Price>10000$ should be processed starting 1st of July 2021 at 8 am, when Q3 starts.
For that, the developer uses an Add Queue Item activity inside an If. What is the correct setting for that activity?
Correct Answer:
D
To set date since when a transaction item should be processed, use Postpone property of Add Queue Item activity. This property can be filled in with relative dates such as DateTime.Now.AddHours(2), DateTime.Now.AddDays(10) and DateTime.Now.Add(New System.TimeSpan(5, 0, 0, 0)). Additionally, you can use the US notation to add an exact time, such as 12/10/2017 07:40:00. Automatically correcting this date is available. For example, if you write 8 9 2018 9:0, it is automatically transformed to 08/09/2018 09:00:00. In the United States, dates are traditionally written in the "month-day-year" order, so 7 1 21 8:0 will result in the item being postponed till 1st of July 2021, when 1 7 21 8:0 will postpone it to 7th of January 2021.
Using DateTime.ParseExact("1 July 2021 08:00","dd mmmm yyyy hh:mm", System.Globalization.CultureInfo.InvariantCulture) will result in an error, as notation for month is capital MM, while mm represents minutes.
- (Topic 1)
A developer used title='1 writtenNotes - Notepad' as an attribute of a selector. The first character of the Notepad file name changes dynamically based on the .txt file used to open the file.
If the developer wants the selector to identify the Notepad by everything but the first character, how should title be replaced?
Correct Answer:
D
Reference: https://forum.uipath.com/t/notepad-selector/121952/2
- (Topic 2)
Which of the following are considered best practices? Options are :
Correct Answer:
BC
- (Topic 2)
How can you improve a selector? Options are :
Correct Answer:
AC
