BlackFriday 2024! 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 1 Question 14 Discussion

Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 14
Topic #: 1
[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:

Tyra
5 months ago
Makes sense to me too. Definitely not D because SelectorNotFound is different.
upvoted 0 times
...
Lucille
5 months ago
Since Notepad.exe isn't running, it makes sense we'd get an ApplicationNotFoundException.
upvoted 0 times
...
Huey
5 months ago
Interesting. Why do you believe it's B?
upvoted 0 times
...
Lucille
5 months ago
I think the right answer is B) ApplicationNotFoundException.
upvoted 0 times
...
Tyra
6 months ago
Yeah, it's a bit tricky with those graphics. What's your take?
upvoted 0 times
...
Lucille
7 months ago
Hey, have you seen the question about the Notepad.exe automation?
upvoted 0 times
...
Adela
7 months ago
Yes, the automation would likely throw that exception if Notepad.exe is not running.
upvoted 0 times
...
Krissy
7 months ago
I agree, it seems like the correct option.
upvoted 0 times
...
Ryan
7 months ago
I think it's B) ApplicationNotFoundException.
upvoted 0 times
...

Save Cancel