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 34 Discussion

Actual exam question for UiPath's UiPath-ADPv1 exam
Question #: 34
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:

Stephanie
1 months ago
Haha, Notepad.exe, the dinosaur of text editors. If this question is any indication, I'm glad I'm not taking this exam. B) is the correct answer, but I'd rather be automating something more exciting than opening Notepad.
upvoted 0 times
Isabella
28 days ago
What other software would you rather automate?
upvoted 0 times
...
Vicente
1 months ago
What kind of automation would you prefer to be working on?
upvoted 0 times
...
...
Vincent
2 months ago
Hmm, I see your point. Both options make sense based on the graphics.
upvoted 0 times
...
Talia
2 months ago
B) ApplicationNotFoundException, easy peasy. I could've answered this in my sleep. Wait, do they ever have Notepad.exe questions on this exam? I hope not, I hate that program. It's like using a stone tablet to write code.
upvoted 0 times
...
Toshia
2 months ago
Dude, you're way off. Did you even look at the images? It's clearly B) ApplicationNotFoundException. How can you get that wrong?
upvoted 0 times
...
Avery
2 months ago
I'm going with D) SelectorNotFoundException. If the automation can't find the Notepad window, it'll throw a SelectorNotFoundException, right? That's what the images suggest to me.
upvoted 0 times
Graciela
1 months ago
I agree, SelectorNotFoundException makes sense based on the images provided.
upvoted 0 times
...
Maricela
1 months ago
I think you're right. The images do seem to point to SelectorNotFoundException as the correct answer.
upvoted 0 times
...
...
Antonio
2 months ago
I agree, B is the right answer. The automation is looking for Notepad.exe, and if it's not running, it will throw an ApplicationNotFoundException. Simple enough.
upvoted 0 times
Carmelina
1 months ago
Yeah, B sounds like the correct choice here.
upvoted 0 times
...
Mitzie
1 months ago
I think it's B too. Makes sense.
upvoted 0 times
...
Chuck
1 months ago
B) ApplicationNotFoundException
upvoted 0 times
...
...
Raymon
2 months ago
I believe it could also be D) SelectorNotFoundException.
upvoted 0 times
...
Carolann
2 months ago
The correct answer is B) ApplicationNotFoundException. The images show that the automation is trying to interact with Notepad.exe, but if it's not running, the application would not be found, resulting in an ApplicationNotFoundException.
upvoted 0 times
Nieves
2 months ago
C) Try
upvoted 0 times
...
Maxima
2 months ago
B) ApplicationNotFoundException
upvoted 0 times
...
Yvette
2 months ago
A) Exception
upvoted 0 times
...
...
Vincent
2 months ago
I think the answer is B) ApplicationNotFoundException.
upvoted 0 times
...

Save Cancel