A developer is building an automation which types text into a text file. The Activity Project Settings tor UI Automation Modern activities are set as follows:
The developer has configured the properties of a Type Into activity as follows:
What is the behavior of the Type Into activity when executing the workflow?
Options:
A.
The activity will use only properties set in Activity Project Settings.
B.
The activity will remove Multi Line in Run mode and a Single Line in Debug mode.
C.
The activity will remove a Single Line in Run mode and in Debug mode.
D.
The activity will remove a Single Line in Run mode and Multi Line in Debug mode.
Hi All, just wanted to understand what will be the answer for this question as there are conflicting views I can see online and fundamentally as well. What should the be correct one?
The activity will use only properties set in Activity Project Settings. The activity will remove a Single Line in Run mode and in Debug mode.
Settings you configure in Properties panel takes the precedence over project level settings. Hence, bot will run as per Type Into activity properties set.
Best way to validate this answer is just try it in Studio.
Option D is correctbecause:
Run Mode: Removes only a single line(optimized for execution).
Debug Mode: Removes all text (Multi-line)(helps debugging).
This behavior ensures efficiency in normal execution while improving visibility during debugging