Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

UiPath Exam UiPath-ADPv1 Topic 4 Question 37 Discussion

Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 37
Topic #: 4
[All UiPath-ADPv1 Questions]

Review the following graphics:

If the automation is executed and Notepad.exe is not running, which Log Message text value is contained in the Output panel?

Show Suggested Answer Hide Answer
Suggested Answer: B

The graphics show a UiPath workflow that contains a Try Catch activity with a Type Into activity inside the Try block and a Log Message activity inside the Catch block. The Type Into activity is configured to type ''Typing into Notepad'' into a Notepad window with the selector ''<wnd app='notepad.exe' cls='Notepad' title='Untitled - Notepad' />''. The Log Message activity is configured to log the exception message in the Output panel.

If the automation is executed and Notepad.exe is not running, the Type Into activity will fail to find the target UI element and throw an exception. The exception will be caught by the Catch block and the Log Message activity will log the exception message in the Output panel. The exception message will contain the name of the exception type, which is ApplicationNotFoundException. This exception is thrown when the application that is specified in the selector is not found or not running. Therefore, the Log Message text value that is contained in the Output panel is ApplicationNotFoundException.

The other options are not correct, as they are not the exception type that is thrown by the Type Into activity when the application is not running. Option A is incorrect, because Exception is a generic term for any error or problem that occurs during the execution of a program, not a specific exception type. Option C is incorrect, because Try is not an exception type, but a keyword that marks the beginning of a block of code that may throw an exception. Option D is incorrect, because SelectorNotFoundException is not an exception type, but a possible error message that is displayed when the selector is invalid or does not match any UI element.


Contribute your Thoughts:

Sherill
3 days ago
Nah, guys, you're overthinking this. The correct answer is A) Exception. When the app isn't running, the automation will just throw a generic Exception. Keep it simple, you know?
upvoted 0 times
...
Loreta
4 days ago
I agree with Isabella, because if Notepad.exe is not running, it makes sense that the application would not be found.
upvoted 0 times
...
Hermila
8 days ago
Ha! Clearly, the answer is C) Try. I mean, why else would they show us those images? The automation is probably wrapped in a Try-Catch block.
upvoted 0 times
...
Isabella
8 days ago
I think the answer is B) ApplicationNotFoundException.
upvoted 0 times
...
Shad
11 days ago
Hmm, I'm not so sure. Wouldn't it be D) SelectorNotFoundException? If the app isn't running, the automation might not be able to find the correct selectors.
upvoted 0 times
...
Janine
12 days ago
I think the correct answer is B) ApplicationNotFoundException. The images show that the automation is trying to interact with Notepad.exe, and if it's not running, it should throw an ApplicationNotFoundException.
upvoted 0 times
...

Save Cancel