0% found this document useful (0 votes)
28 views38 pages

Sol QB Subject - Robotic Process Automation Subject Code - BTCS9505

Uploaded by

SHR extreme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views38 pages

Sol QB Subject - Robotic Process Automation Subject Code - BTCS9505

Uploaded by

SHR extreme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

Question Bank Subject:Robotic Process Automation Subject Code: BTCS9505

1. What are the various keyboard shortcut used in UiPath studio


Ans:

Ctrl + N: Create a new workflow.


Ctrl + O: Open an existing workflow.
Ctrl + S: Save the current workflow.
Ctrl + Shift + S: Save all open workflows.
Ctrl + Shift + N: Create a new sequence.
Ctrl + Shift + F: Create a new flowchart.
Ctrl + Shift + L: Create a new state machine.
Ctrl + Shift + T: Create a new transactional process.
Ctrl + Z: Undo the last action.
Ctrl + Y: Redo the last action.

3. What is Automation debugging and function of Debugging?

Automation debugging is the process of identifying and resolving issues or errors in an


automated workflow or process. It allows you to step through the execution of your
automation project, observe the values of variables.

The main functions of debugging in UiPath are as follows:

a. Stepping through the Workflow: Debugging enables you to execute your workflow
step by step, allowing you to observe the execution flow and verify if each step is
functioning as expected.

b. Inspecting Variables: During debugging, you can inspect the values of variables at
different points in the workflow. This helps you track the flow of data and identify any
inconsistencies or unexpected values.

c. Setting Breakpoints: Breakpoints can be set at specific activities or lines of code,


pausing the execution of the workflow when reached. This allows you to examine the
state of the variables and check if the workflow is progressing as intended.
d. Watching Variables: You can add variables to the Watch panel, which allows you to
monitor their values continuously as the workflow progresses. This is useful for tracking
changes and detecting issues.

4. Differentiate between sequence and flowchart.

Sequences Flowchart

1.Sequence is a linear set of activities 1.Flowchart is a graphical


executed one after another, following a representation of a workflow that
top-down approach. allows for branching and
decision-making.

2. It is best suited for simple and 2. It is suitable for complex


straightforward workflows with a clear workflows with conditional logic,
sequence of steps. loops, and decision points.

3. Activities are connected using


3. Activities in a sequence are executed in flowchart connectors, such as
the order they appear, from top to bottom. arrows, to represent the flow of
execution.
.

4. It provides a clear and concise 4.. It allows for branching using decision
representation of the workflow logic. activities, such as If, Switch, and Flow
Decision, to handle different scenarios
based on conditions.

5. It is easier to maintain and debug as 5. It is more flexible and versatile for


the flow is straightforward handling complex workflows with multiple
paths and decision points.
6. How RPA is used in the industries and also explain the applications of RPA in the
industry?
points explaining how RPA is used and its applications in various industries:

Improved Efficiency: RPA can automate mundane, time-consuming tasks, such as data
entry, form filling, and report generation. This frees up human employees to focus on
more strategic and value-added activities, resulting in increased productivity and
efficiency.

Data Migration and Integration: RPA can be used to automate the migration of data
between different systems or to integrate data from multiple sources. This helps
streamline processes and ensures accurate and timely data transfer.

Customer Service and Support: RPA bots can assist with customer service activities by
automatically handling routine inquiries, updating customer information, and providing
quick responses. This enhances customer satisfaction and reduces response times.

Financial and Accounting Processes: RPA can automate tasks like invoice processing,
accounts payable/receivable, and financial report generation. It can extract relevant
information from documents, validate data, and update records, minimizing errors and
accelerating financial processes.

Supply Chain Management: RPA can optimize supply chain operations by automating
inventory management, order processing, and shipment tracking. Bots can monitor
stock levels, generate purchase orders, and update delivery status, ensuring smoother
operations and reducing delays.
7. Display “Hello Message” using Message Box & Write line

Using Message Box activity:

1. Drag and drop a Message Box activity onto your workflow.


2. In the Properties panel, set the Text property to "Hello Message".

Using Write Line activity:

1. Drag and drop a Write Line activity onto your workflow.


2. In the Properties panel, set the Text property to "Hello Message".

Both approaches will display the "Hello Message" in UiPath.


. 8. Create a State Machine workflow to compare user input with a random number.

1. Create a new State Machine workflow in UiPath Studio.


2. Add two states to the State Machine by right-clicking on the State Machine
canvas and selecting "Add State". Name the states as "User Input" and
"Comparison".
3. In the "User Input" state, add an Input Dialog activity to prompt the user for input.
Set the Prompt property to ask for a number and store the result in a variable,
let's say "userInput".
4. Add a Transition activity to transition from the "User Input" state to the
"Comparison" state.
5. In the "Comparison" state, add a Generate Random Number activity to generate a
random number and store it in a variable, let's say "randomNumber".
6. Add an If activity to compare the "userInput" variable with the "randomNumber"
variable.
7. Inside the If activity, add activities to handle the true and false conditions based
on the comparison result. For example, you can use Message Box activities to
display "Correct!" or "Incorrect!" messages accordingly.
8. Add Transition activities to transition back to the "User Input" state or exit the
State Machine based on the desired logic flow.

9. Explain various activities in UiPath: Type into, Send HotKey, Write line & Read
TextFile.
Type Into:

The Type Into activity is used to simulate keyboard input. It allows you to enter
text into input fields, text boxes, or other editable elements in an application or
web page
Send HotKey:

The Send HotKey activity is used to simulate keyboard shortcuts or key


combinations

Write Line:

The Write Line activity is used to display information or messages during the
execution of a workflow.

Read Text File:

The Read Text File activity is used to read the contents of a text file. It reads the
text from a specified file path and stores it in a string variable. You can then use
the variable to manipulate or process the text as per your requirements. It is
useful for reading configuration files, log files, or any other text-based data.
10. Create a workflow, to print the Fibonacci Series up to given number using
Do-While loop activity

1. Create a new sequence workflow in UiPath Studio.


2. Add an Input Dialog activity to prompt the user to enter a number. Store the
result in a variable, let's say "limit".
3. Add an Assign activity and create three variables: "num1" (initialize with 0),
"num2" (initialize with 1), and "nextNum" (initialize with 0).
4. Drag and drop a Do-While activity onto the workflow.
5. Set the Condition property of the Do-While activity to nextNum <= limit.
6. Inside the Do-While loop, add a Write Line activity to display the value of
"num1".
7. Add an Assign activity to calculate the next number in the Fibonacci sequence.
Set "num1" to "num2" and "num2" to "nextNum".
8. Add another Assign activity to update the value of "nextNum" by summing up
"num1" and "num2".
9. Save and run the workflow.

11. Create a process in UiPath, by using these activities: Input Dialog, Read Range,
Write line & Read TextFile, Message Box. Also, mention the usage of these activities

Ans

: To create a process in UiPath using the mentioned activities, here's an outline


of how they can be used:

1. Input Dialog: Prompt the user to enter input, such as a number or text.
Store the user's response in a variable for further processing.
2. Read Range: Read data from an Excel file or spreadsheet. Specify the
range of cells to read and store the data in a DataTable variable for further
manipulation.
3. Write Line: Display information or messages during the execution of the
workflow. It can be used for debugging or logging purposes.
4. Read TextFile: Read the contents of a text file. Store the text in a string
variable for further processing or display.
5. Message Box: Display a pop-up message box with a message. It is useful
for providing information, alerts, or notifications during the workflow
execution.

12. Explain the significance of the following activities. The Assign Activity, The Delay
Activity, The Break Activity, For Each Activity by suitable examples.

Assign Activity: The Assign activity is used to assign values to variables or update
variable values during the execution of a workflow. It is helpful for storing or
manipulating data.

num1 = num2 + 5 assigns the value of num2 + 5 to the variable num1.

Delay Activity: The Delay activity introduces a delay or pause in the workflow for a
specified amount of time. It is useful for adding wait times between actions or for
implementing time-based conditions

.num1 = num2 + 5 assigns the value of num2 + 5 to the variable num1.

Break Activity: The Break activity is used to exit or terminate a loop prematurely. It is
typically used within a loop structure to break out of the loop when a specific condition
is met.

For Each Activity: The For Each activity is used to iterate over a collection or array and
perform actions on each element. It allows you to process each item individually
without explicitly specifying the index

For Each item in myArray iterates through each element in the array myArray and
performs actions on each item..

13. Automate the process to find the smallest and biggest numbers in an array.

1. Use an Input Dialog to prompt the user to enter a list of numbers, separated by
commas.
2. Split the input string by commas to create an array of numbers.
3. Use an Assign activity to initialize variables smallest and biggest. Set smallest
to a large initial value and biggest to a small initial value.
4. Use a For Each activity to iterate through each number in the array.
5. Within the For Each loop, use an If activity to compare each number with the
current values of smallest and biggest.
6. If the current number is smaller than smallest, update smallest with the current
number.
7. If the current number is larger than biggest, update biggest with the current
number.
8. After the For Each loop, use a Write Line activity to display the smallest and
biggest numbers.
9. Optionally, you can use a Message Box activity to show a pop-up message with
the smallest and biggest numbers.

14. Automate the process of checking whether a year entered by user is leap year or
not using Flow decision

Ans

1. Use an Input Dialog to prompt the user to enter a year.


2. Convert the user input to an integer.
3. Use a Flow Decision activity to check the condition if the year is divisible by 4
and not divisible by 100, or if the year is divisible by 400.
4. If the condition is true, use a Message Box activity to display that the year is a
leap year.
5. If the condition is false, use a Message Box activity to display that the year is
not a leap year.

. 15. Automate a process to create a simple interest calculator using separate


workflows and arguments

1. Create a new workflow for the user input process:


● Use Input Dialog activities to prompt the user to enter the principal
amount, interest rate, and time.
● Store the user input in variables, such as principal, rate, and time.
● Add an Invoke Workflow File activity and specify the path to the "Calculate
Interest" workflow.
2. Create another workflow for the interest calculation process ("Calculate
Interest"):
● Define input arguments for the principal, rate, and time variables.
● Use Assign activities to convert the rate and time values to appropriate
data types if needed.
● Perform the calculation for simple interest using the formula:
simpleInterest = (principal * rate * time) / 100.
● Store the calculated simple interest in a variable, such as interest.
● Use a Write Line activity to display the calculated simple interest.
3. Pass the input arguments from the user input workflow to the "Calculate Interest"
workflow:
● In the Invoke Workflow File activity, go to the Arguments panel.
● Map the input arguments of the "Calculate Interest" workflow to the
variables from the user input workflow (e.g., principal to in_Principal,
rate to in_Rate, time to in_Time).
4. Save and run the main workflow to automate the simple interest calculator
process:
● The user input workflow will prompt the user for input.
● The input values will be passed as arguments to the "Calculate Interest"
workflow.
● The "Calculate Interest" workflow will perform the interest calculation and
display the result using the Write Line activity.

17. Automate the workflow for changing the names of all the PDF files from a given
folder using the For Each loop and a couple of specific String methods

1. Use the Directory.GetFiles activity to get a list of all the PDF files in the given
folder. Store the file paths in an array variable, let's call it "pdfFiles".
2. Add a For Each activity and set the TypeArgument property to String. Set the
Values property of the For Each loop to "pdfFiles" variable.
3. Within the For Each loop, add the following activities:
a. Use the Path.GetFileNameWithoutExtension method to extract the file name
without the extension from the current file path. Store the result in a string
variable, let's call it "fileName".
b. Use the Path.GetExtension method to get the file extension from the current
file path. Store the result in a string variable, let's call it "fileExtension".
c. Use the Assign activity to construct the new file name. You can use specific
String methods like Replace, Substring, or any other required logic to modify the
"fileName" string as per your requirements. Store the modified file name in a
string variable, let's call it "newFileName".
d. Use the File.Move activity to rename the current PDF file. Set the source file
path as the current file path, and the destination file path as the combination of
the folder path, "newFileName", and "fileExtension".
4. Save and run the workflow.

18. Automate the workflow by using the Parallel activity to calculate tax based on the
user input
. 19. Create a Flowchart to navigate to a desired page based on a condition

1. Create a new Flowchart workflow in UiPath Studio.


2. Drag and drop a Decision activity onto the Flowchart canvas.
3. Connect the Decision activity to the start node of the Flowchart.
4. Double-click on the Decision activity to open the properties panel.
5. Define the condition for navigation by configuring the Condition property of the
Decision activity. For example, you can use an expression like pageNumber == 1
to check if the page number is equal to 1.
6. Add a Flow Decision activity inside the True branch of the Decision activity.
7. Connect the True branch of the Flow Decision activity to the desired page or
sequence within the Flowchart. This represents the navigation when the
condition is true.
8. Save and run the Flowchart.

20. Perform an activity to call a sequence inside flowchart and vice-versa.

Calling a Sequence from a Flowchart:

1. Create a new Flowchart workflow in UiPath Studio.


2. Drag and drop an Invoke Workflow File activity onto the Flowchart canvas.
3. Configure the properties of the Invoke Workflow File activity:
● Set the WorkflowFileName property to the path of the Sequence workflow
you want to call.
● Optionally, provide input arguments to the Sequence by setting the
Arguments property.
4. Connect the Invoke Workflow File activity to the desired part of the Flowchart.
5. Save and run the Flowchart. The Sequence will be executed when the Flowchart
reaches the Invoke Workflow File activity.
Calling a Flowchart from a Sequence:

1. Create a new Sequence workflow in UiPath Studio.


2. Drag and drop a Flowchart activity onto the Sequence canvas.
3. Configure the properties of the Flowchart activity:
● Set the DisplayName property to give a name to the Flowchart.
● Define the logic of the Flowchart using various activities and decision
branches.
4. Save and run the Sequence. The Flowchart will be executed when the Sequence
reaches the Flowchart activity.

21. Automate the process displaying current date and time using Date variable. Also
modify the program to print only date

1. Create a new workflow in UiPath Studio.


2. Drag and drop a Assign activity onto the workflow canvas.
3. In the Assign activity, create a new variable of type DateTime, let's call it
"currentDateTime".
4. Set the value of "currentDateTime" variable to the current date and time using the
Now function:

currentDateTime = DateTime.Now;

5 .Add a Write Line activity to display the current date only USING EXPRESSSION:

currentDateTime.Date.ToString("yyyy-MM-dd");

6. Save and run the workflow. The current date and time will be displayed in the Output

22. Automate the process checking whether a number entered by user is prime or not
using do while and if-else activities

1. Create a new workflow in UiPath Studio.


2. Use an Input Dialog activity . Store the user's response in a variable, "number".
3. Add a Do While activity to the workflow.
4. Inside the Do While activity

a. Initialize a counter variable, "i", to 2.


b. Use an If activity to check if the number is divisible by "i". The condition will be
"number Mod i = 0".
c. If the condition is true, use a Message Box activity to display that the number
is not prime.
d. Increment the value of "i" by 1 using an Assign activity.
e. Use a Break activity to exit the Do While loop if the value of "i" becomes greater
than the square root of the number. The condition will be "i > Math.Sqrt(number)".

5. Add an If-Else activity after the Do While activity.


a. In the If condition, check if the value of "i" is equal to the square root of the
number. The condition will be "i = Math.Sqrt(number)".
b. If the condition is true, use a Message Box activity to display that the number
is not prime.
c. If the condition is false, use a Message Box activity to display that the number
is prime.

Save and run the workflow.

23. Automate the process displaying the files of any folder entered by user using for
each control structure.
1. Create a new workflow in UiPath Studio.

2. Use an Input Dialog activity to prompt the user to enter the path of the folder.
Store the user's response in a variable "folderPath".

3. Add a Directory.GetFiles activity to the workflow.

4. Configure the properties of the Directory.GetFiles activity:


5. Set the Path property to the value of the "folderPath" variable.
6. Set the SearchPattern property to "." to retrieve all files from the folder.
7. Store the output of the Directory.GetFiles activity in an array variable, let's call it
"filesArray".
Add a For Each activity to the workflow.

8. Set the TypeArgument property of the For Each activity to String.


9. Set the Values property of the For Each activity to "filesArray" variable.

10. Inside the For Each activity, add a Write Line activity to display each file name.

11. Set the Text property of the Write Line activity to the current item of the For Each
loop. You can use Path.GetFileName or any other required logic to extract the file
name from the file path.
12. Save and run the workflow.

24. Perform factorial of a program using While loop activity

1. Create a new workflow in UiPath Studio.


2. Use an Input Dialog activity to prompt the user to enter a number. Store the user's
response in a variable, let's call it "number".
3. Add an Assign activity to initialize a variable to hold the factorial value, let's call it
"factorial". Set the initial value of "factorial" to 1.
4. Add an Assign activity to initialize a counter variable, let's call it "i", to 1.
5. Add a While activity to the workflow.
6. Set the Condition property of the While activity to "i <= number".
7. Inside the While activity, add the following activities:
a. Multiply the current value of "factorial" by the value of "i" using an Assign
activity. Set the value as "factorial = factorial * i".
b. Increment the value of "i" by 1 using an Assign activity. Set the value as "i = i +
1".
8. Add a Message Box activity after the While activity.

Set the Text property of the Message Box activity to display the factorial value. Use the
following expression:

9. "The factorial of " + number.ToString() + " is " + factorial.ToString().


10. Save and run the workflow.

25. Automate the process displaying the days of the weeks for any given day number
entered by user using for switch activity.
1. Create a new workflow in UiPath Studio.
2. Use an Input Dialog activity to prompt the user to enter a day number. Store the
user's response in a variable, let's call it "dayNumber".
3. Add a Switch activity to the workflow.
4. Set the Expression property of the Switch activity to the value of "dayNumber".
5. Inside the Switch activity, add the following cases:
● Case 1: Enter the value 1 in the Case field.
● Add a Write Line activity inside this case to display "Sunday".
● Case 2: Enter the value 2 in the Case field.
● Add a Write Line activity inside this case to display "Monday".
● Case 3: Enter the value 3 in the Case field.
● Add a Write Line activity inside this case to display "Tuesday".
● Continue adding cases for the remaining days of the week, up to Case 7.
● Default case: Add a Write Line activity inside the Default case to display
"Invalid day number".
6. Save and run the workflow.

26. Copy one text file to another using Read text File and Write Text File activity

27. Perform an activity using if to show whether the input number is even or
odd.
1. Drag and drop an "Input Dialog" activity onto your workflow.Create two variables
of type Integer: inputNumber and result.
2. Drag and drop an "Assign" activity below the "Input Dialog" activity.
3. In the properties panel of the "Assign" activity, set the following properties:
● To: inputNumber
● Value: CInt(inputDialog.Result) (assuming the input dialog variable is
named inputDialog)
4. This step converts the user's input from a string to an integer and stores it in the
inputNumber variable.
5. Drag and drop an "If" activity below the "Assign" activity.
6. In the properties panel of the "If" activity, set the following condition:
● Condition: inputNumber Mod 2 = 0
7. This condition checks if the input number is divisible by 2, indicating an even
number.
8. In the "Then" section of the "If" activity, add an activity (e.g., "Message Box") to
display a message stating that the number is even.
9. In the "Else" section of the "If" activity, add an activity (e.g., "Message Box") to
display a message stating that the number is odd.

28. Perform Command Prompt activity using Type into and Click activity.

1. Use "Open Application" activity onto your workflow.


2. In the properties panel of the "Open Application" activity,
● FileName: "cmd.exe"
● Arguments: "/c"
● Drag and drop a "Type Into" activity below the "Open Application" activity.
3. In the properties panel of the "Type Into" activity, set the following properties:
● ClickBeforeTyping: True
● Text: "<command>" (replace <command> with the actual command you want
to execute)
4. This step will simulate typing the command into the Command Prompt window.
5. Drag and drop a "Click" activity below the "Type Into" activity.
6. In the properties panel of the "Click" activity, set the following properties:
● Selector: Use the "Indicate Element" feature to select the Command
Prompt's "Enter" or "Run" button.
29. Write into notepad file using Send HotKey and Write Text File activity.

1. Drag and drop an "Open Application" activity onto your workflow.


2. In the properties panel of the "Open Application" activity, set the following
properties:
● FileName: "notepad.exe"
3. Drag and drop a "Send Hotkey"

In the properties panel of the "Send Hotkey" activity

● Key: Ctrl+n
● This step will open a new Notepad window.
4. Drag and drop a "Send Hotkey" activity below the previous activity.
5. In the properties panel of the "Send Hotkey" activity, set the following properties:
● Key: Ctrl+v
● This step will simulate pasting the text into the Notepad window.
6. Drag and drop a "Write Text File" activity below the "Send Hotkey" activity.
7. In the properties panel of the "Write Text File" activity, set the following
properties:
● FileName: Specify the path of the Notepad file you want to write to.
● Text: Specify the text you want to write into the file.

30. Create a Sequence to obtain user inputs display them using a message box

1. Drag and drop a "Sequence" activity onto your workflow.


2. Within the sequence, drag and drop an "Input Dialog" activity.
3. In the properties panel of the "Input Dialog" activity, set the following properties:
● Output: Create a variable (e.g., userInput).
4. Drag and drop a "Message Box" activity below the "Input Dialog" activity.
5. In the properties panel of the "Message Box" activity, set the following properties:
● Text: "User Input: " + userInput.

31. Perform Activity using Input Dialog to display customized message.

1. Drag and drop an "Input Dialog" activity onto your workflow.


2. In the properties panel of the "Input Dialog" activity, set the following properties:
● Title: Specify the title of the input dialog (e.g., "Custom Message")
● Label: Specify the customized message you want to display (e.g., "Please
enter your name:")
● Output: Create a variable (e.g., userInput)

32. What is the difference between Basic and desktop recording?

1. Basic Recording:
● Basic Recording is a simpler and more user-friendly method.
● It captures user actions such as clicks and keystrokes.
● It provides a visual flowchart-like representation of the recorded steps.
● It is suitable for automating simple processes and tasks.
2. Desktop Recording:
● Desktop Recording is a more advanced recording method.
● It captures both user actions and screen images.
● It generates a sequence of activities based on the captured screen
images.
● It is more powerful and flexible, allowing for more complex automation
scenarios.
33. What is the difference between data scraping and screen scraping?

Data Scraping Screen Scraping

Extracting structured data from websites Extracting data from the user interface of
Purpose
or structured sources applications or systems
Source Websites, web pages, structured sources Application user interface

Specific information such as tables, lists, Information from application windows,


Data Extraction
or grids images, or text

Identifying HTML structure and using Interacting with UI elements, OCR (Optical
Technique
selectors or patterns Character Recognition)

Specialized data scraping tools or built-in Automating mouse and keyboard


Automation
activities interactions

Web scraping, data extraction from web Integration with legacy or non-API
Use Case
pages applications

34. Perform an activity to Copy one excel sheet data to another excel sheet

1. Use "Excel Application Scope" activity


2. In the properties panel of the "Excel Application Scope" activity, specify the Excel
file you want to work with using the "WorkbookPath" property.
3. Within the "Excel Application Scope," drag and drop a "Read Range" activity.
4. In the properties panel of the "Read Range" activity,
● specify the sheet name or range you want to copy from using the
"SheetName" or "Range" property.
● create a variable (e.g., dtData) of type DataTable to store the read data.
5. Outside the "Excel Application Scope," drag and drop another "Excel Application
Scope" activity.
6. In the properties panel of the second "Excel Application Scope" activity,
● specify the Excel file where you want to paste the data using the
"WorkbookPath" property.
7. Within the second "Excel Application Scope," drag and drop a "Write Range"
activity.
8. In the properties panel of the "Write Range" activity, specify the sheet name or
range where you want to paste the data using the "SheetName" or "Range"
property. Also, set the "DataTable" property to dtData, which holds the data you
read.

35. Create a workflow to Perform an activity for Excel Automation.

1. Drag and drop an "Excel Application Scope" activity onto your workflow.
2. In the properties panel of the "Excel Application Scope" activity, specify the Excel
file
3. Within the "Excel Application Scope," drag and drop a "Read Range" activity.
4. In the properties panel of the "Read Range" activity, specify the sheet name or
range

Also, create a variable (e.g., dtData) of type DataTable to store the read data.
5. Drag and drop a "For Each Row" activity below the "Read Range" activity.
6. In the properties panel of the "For Each Row" activity, set the following properties:
● DataTable: dtData
● Body: Drag and drop a "Message Box" activity inside the body of the "For
Each Row" activity.
● In the "Message Box" activity, set the Text property to
row("Column1").ToString() (replace "Column1" with the appropriate
column name in your Excel sheet)

Activity will print each value in column on message box

36. Automate an activity to Update the cell of excel sheet

1. Excel Application Scope

- WorkbookPath: "C:\Path\to\your\file.xlsx"

2. Write Cell

- SheetName: "Sheet1"

- Cell: "A1"

- Value: "New Value"

37. Read numbers from input file and write even & odd numbers to different
files.

1. Use "Read Text File" activity

specify the input file path using the "FileName" property.\

Create a variable (e.g., inputNumbers) of type String to store the read text.

2. Create two variables:\

evenNumbers (String)
oddNumbers (String).

3. Drag and drop a "For Each" activity below the "Read Text File" activity.

● TypeArgument: System.String
● Values: inputNumbers.Split(Environment.NewLine.ToCharArray())

4. Inside the "For Each" loop, add an "If" activity.

In the condition of the "If" activity,

check if the current number (variable: item) is even or odd.

For example, you can use the expression Int32.Parse(item) Mod 2 = 0 to


check if the number is even.

3. Drag and drop a "Write Text File" activity inside the "Then" branch of the "If"
activity.
4. In the properties panel of the "Write Text File" activity, specify the even numbers
file path using the "FileName" property.

Use the "evenNumbers" variable as the text to write.

5. Add another "Write Text File" activity inside the "Else" branch of the "If" activity.
6. In the properties panel of the second "Write Text File" activity, specify the odd
numbers file path using the "FileName" property. Use the "oddNumbers" variable
as the text to write.

38. Automate the process for sorting using Excel sheet activity.
39. Define data manipulation, also explain some business scenarios where it
can use.

Data manipulation refers to the process of altering, transforming, or modifying data to extract valuable
insights, prepare it for analysis, or meet specific business requirements. It involves applying various
operations, such as filtering, sorting, aggregating, joining, splitting, transforming, and calculating, to
manipulate the data in a meaningful way.

Business scenarios where data manipulation is commonly used include:

1. Data Cleansing: Cleaning and standardizing data to remove errors, inconsistencies, and duplicates.
This ensures data accuracy and reliability for analysis, reporting, and decision-making processes.

2. Data Transformation: Converting data from one format or structure to another. For example, converting
dates to a standardized format, changing data types, or transforming data into a suitable format for data
integration or reporting purposes.
3. Data Aggregation: Summarizing and consolidating data to create meaningful summaries or metrics.
Aggregating data allows businesses to analyze trends, patterns, and performance across different
dimensions, such as time periods, regions, or product categories.

4. Data Filtering: Filtering data based on specific criteria or conditions to focus on a subset of data that
meets certain requirements. This helps in identifying outliers, segmenting data, or extracting subsets for
further analysis.

5. Data Joins and Merging: Combining multiple datasets or tables to create a unified view of the data.
Joining data is useful when analyzing data from different sources or when merging data based on
common attributes, such as customer IDs or product codes.

6. Data Calculations: Performing mathematical or logical operations on data to derive new insights or
create derived measures. For example, calculating averages, totals, percentages, or applying formulas to
generate new metrics.

7. Data Splitting: Splitting data into multiple parts or subsets based on specific criteria. This can be useful
for segmenting data, creating test datasets, or distributing data across different systems or departments.

8. Data Formatting: Formatting data to enhance readability, consistency, or compatibility. This includes
formatting dates, numbers, currencies, or text strings to conform to specific standards or requirements

40. Explain the various string manipulations methods used in RPA.

1. Concatenation: Combining two or more strings together to create a single string.


This is typically done using the concatenation operator (+) or the string
concatenation function.
2. Substring Extraction: Extracting a portion of a string based on its position or
length. This can be achieved using functions like substring, substr, or str_sub,
which allow you to specify the starting position and length of the desired
substring.
3. String Replacement: Replacing specific characters or substrings within a string.
This is commonly done using functions like gsub or str_replace, where you can
specify the pattern to match and the replacement text.
4. String Splitting: Splitting a string into multiple substrings based on a delimiter.
Functions like strsplit or split can be used to split a string into an array of
substrings based on a specified delimiter.
5. String Case Conversion: Converting the case of a string to uppercase or
lowercase. Functions like toupper, tolower, or str_to_upper, str_to_lower can be
used for case conversion.
6. String Trimming: Removing leading and trailing spaces or specific characters
from a string. Functions like trim, str_trim, or gsub can be used to remove
whitespace or specific characters from a string.
7. String Formatting: Formatting a string to a specific format, such as date
formatting or number formatting. Functions like format or sprintf allow you to
format strings based on specific patterns or templates.
8. String Length and Manipulation: Retrieving the length of a string and performing
operations like finding the position of a substring within a string. Functions like
nchar, str_length, grep, or str_detect can be used for such purposes.
9. Regular Expressions: Using regular expressions to perform advanced pattern
matching and manipulation on strings. Functions like gsub, str_extract, or
str_replace_all provide support for regular expressions.

41. Define object, methods, and properties in terms of data manipulation.

In the context of data manipulation, let's define the terms "object," "methods," and "properties":

1. Object: An object is a fundamental concept in programming and represents a specific instance of a


data structure or class. In the context of data manipulation, an object refers to a specific data entity that
can be manipulated or acted upon. For example, an Excel workbook, a database table, or a string variable
can all be considered objects.

2. Methods: Methods are actions or operations that can be performed on an object to manipulate or
transform its data. They represent a set of instructions or behaviors associated with an object that enable
specific operations to be carried out. In data manipulation, methods are used to perform actions such as
sorting, filtering, aggregating, or transforming data. For example, in Excel, methods like "Sort," "Filter," or
"Calculate" are used to manipulate data within a workbook.

3. Properties: Properties are attributes or characteristics of an object that describe its state or behavior.
They provide information about the object's data and define its specific characteristics. In the context of
data manipulation, properties represent the characteristics or attributes of data that can be accessed or
modified. For example, in a database table object, properties could include the table name, column
names, data types, or constraints.
42. Explain the regular expression in context of RPA, also explain some
business scenarios, and name the methods in UiPath that uses the RegEx.

Regular expression, commonly known as RegEx, is a powerful tool used in RPA (Robotic Process
Automation) for pattern matching and text manipulation. It allows you to define search patterns using a
combination of characters, metacharacters, and special syntax to identify and manipulate specific text
patterns within a larger body of text.

1. Data Extraction: Regular expressions are useful for extracting specific data patterns from unstructured
or semi-structured text. For example, extracting email addresses, phone numbers, or invoice numbers
from a document or extracting specific data elements from a web page.

2. Data Validation: Regular expressions help validate the format and integrity of data. For instance,
verifying that an input matches a specific pattern, such as validating a social security number, validating
email addresses, or validating credit card numbers.

3. Text Manipulation and Transformation: Regular expressions enable text manipulation by replacing or
modifying specific patterns within text. This can be helpful for tasks such as cleaning up or normalizing
data, removing unwanted characters, or reformatting text strings.

4. Parsing and Tokenizing: Regular expressions can be used to parse text by splitting it into meaningful
tokens based on specific patterns. This is useful for breaking down complex text structures into
manageable units for further processing or analysis.

In UiPath, several activities utilize regular expressions for text manipulation and pattern matching,
including:

1. Matches activity: This activity uses regular expressions to find all occurrences of a specified pattern
within a given input string. It returns a collection of matched results that can be further processed or used
for decision-making.

2. Replace activity: The Replace activity allows you to use regular expressions to find and replace specific
patterns within a text string. It enables you to replace matched patterns with desired values or modify the
text based on the defined pattern.

3. Is Match activity: This activity uses regular expressions to check if a given input string matches a
specific pattern. It returns a Boolean value indicating whether the input matches the pattern or not.

4. Split activity: The Split activity allows you to split a text string into an array of substrings based on a
specified regular expression pattern. It facilitates text parsing and tokenization by breaking down the text
into smaller units.
43. Explain the regular expression in context of RPA, also explain some
business scenarios, and name the methods in UiPath without the use of RegEx.

UiPath also provides alternative methods for text manipulation and pattern matching
without the use of regular expressions. Some of these methods in UiPath include:

1. String Manipulation Activities: UiPath offers a set of activities, such as Substring,


Replace, Split, and Join, which allow you to perform common string manipulation
operations without directly using regular expressions. These activities provide a
simpler and more intuitive way to perform tasks like extracting substrings,
replacing text, splitting strings, or joining strings together.
2. Excel Activities: When working with structured data stored in Excel sheets, UiPath
provides a range of Excel activities to manipulate data without relying on regular
expressions. These activities allow you to read, write, filter, sort, and transform
data directly from Excel files, eliminating the need for complex text pattern
matching.
3. Data Table Manipulation: UiPath offers activities specifically designed for
working with data tables, such as Filter Data Table, Sort Data Table, and Join
Data Table. These activities enable you to perform operations on structured data
without requiring regular expressions.

44. Apply the concept of selectors, and construct a simple workflow, that
explain the structure of selector.

Selectors are a crucial concept in UiPath that define the structure and identify the elements of an
application's user interface (UI) that the robot interacts with. Selectors act as a unique identifier for UI
elements, allowing the robot to target and interact with specific elements accurately.

, let's consider an example where we automate the process of opening a web browser and navigating to a
specific website.

1. Open Browser activity: Drag and drop the "Open Browser" activity from the activities panel onto the
workflow . Configure the properties of the activity to specify the URL or website you want to open.
2. Attach Browser activity: Inside the "Open Browser" activity, add an "Attach Browser" activity. This
activity helps define the scope within which subsequent activities will be performed.

3. Web Browser Selector: In the properties of the "Attach Browser" activity, locate the "Selector" property.
This is where you define the structure of the selector for the web browser.

A selector typically consists of several attributes that uniquely identify the element. In this case, for the
web browser, the selector may include attributes such as "title" or "url" to identify the specific browser
instance or tab. The selector could look something like this:

In the above selector, "wnd" refers to the window element, "app" specifies the application (in this case, the
Chrome browser), and "title" identifies the specific window title.

4. Add activities within the Attach Browser scope: Within the "Attach Browser" activity, you can now add
activities to interact with the web page. For example, you can use the "Type Into" activity to enter text into
a search box or the "Click" activity to click on a specific button.

Each activity within the "Attach Browser" scope will automatically use the selector defined in the parent
"Attach Browser" activity, ensuring that the robot interacts with the correct web page

45. Perform an activity to display the movie rating using IMDB.

1. Open Browser activity: Configure the properties to open a web browser.


2. Navigate To activity: Enter the IMDb website URL.
3. Type Into activity: Enter the movie name in the search box.
4. Click activity: Click on the search result for the desired movie.
5. Get Text activity: Extract the movie rating from the IMDb page.
6. Assign activity: Assign the extracted rating to a variable.
7. Message Box activity: Display the movie rating using a message box.

46. Define selectors, and explain the structure of selector.

Selectors are a fundamental concept in UiPath and refer to the XML-based descriptions
that identify and locate UI elements within applications. They provide a unique
identification mechanism for automating interactions with specific elements of an
application's user interface.
The structure of a selector consists of a combination of attributes and values that
define the characteristics of an element. Here's an explanation of the different parts of a
selector:

1. Tags: The top-level tag in a selector is typically the UI framework or application


type, such as "wnd" for a window or "html" for a web page.
2. Attributes: Within a tag, there are attributes that describe the element being
targeted. Attributes can vary depending on the UI framework or application type
but commonly include:
● "id": A unique identifier for the element.
● "name": The name or title of the element.
● "class": The CSS class of the element.
● "aaname": The accessible name of the element.
● "idx": The position index of the element.
● "text": The visible text content of the element.
3. Values: The values associated with attributes are used to uniquely identify the
element. These values can be exact matches or partial matches, depending on
the level of specificity required.
4. Wildcards: To make selectors more flexible and capable of handling dynamic UI
elements, wildcards can be used. The commonly used wildcards are:
● "*": Matches any value.
● "?": Matches any single character.
● "[*]": Matches any partial value.
5. Nesting: Selectors can also be nested to describe the hierarchy of elements
within an application's UI structure. This allows for more precise targeting of
specific child or descendant elements.

example:

6.
47. Differentiate between partial selector and full selector.

48. Automate a process that extract the email address from a string

1. Assign activity: Create a variable (e.g., inputString) and assign the string from
which you want to extract email addresses.
2. Assign activity: Create an empty list variable (e.g., emailList) to store the
extracted email addresses.
3. While activity: Add a While activity to iterate through the input string until no more
email addresses are found. Configure the properties as follows:
● Condition: Set it to inputString.Contains("@") to check if the string still
contains an "@" symbol, indicating the presence of an email address.
4. Assign activity: Inside the While loop, assign the email address substring to a
variable. Use the IndexOf and Substring methods to extract the email address.
Configure the properties as follows:
● To: Set it to inputString.IndexOf("@") to get the starting index of the
email address.
● Length: Set it to inputString.IndexOf(" ",
inputString.IndexOf("@")) - inputString.IndexOf("@") to calculate
the length of the email address substring.
5. Assign activity: Update the input string by removing the extracted email address.
Use the Replace method to remove the email address from the string. Configure
the properties as follows:
● OldValue: Set it to emailVariable (the variable from the previous step).
● NewValue: Set it to an empty string ("").
● Result: Set it to inputString to update the input string for the next
iteration.
6. Add to Collection activity: Add the extracted email address to the emailList
using the Add to Collection activity. Configure the properties as follows:
● Collection: Set it to emailList.
● Item: Set it to the variable holding the extracted email address.
7. Message Box activity: After the While loop, add a Message Box activity to display
the extracted email addresses. Configure the properties as follows:
● Message: Set it to String.Join(Environment.NewLine, emailList) to
display the email addresses as a formatted list.

. 49. Automate a process by implementing selectors with wildcard.

To automate a process by implementing selectors with wildcards in UiPath, you can follow these steps:

1. Identify the element to interact with in your target application.

2. Inspect the selector of the element and determine which attribute or value can be replaced with a
wildcard.

3. Replace the specific attribute or value with a wildcard in the selector to make it more flexible. The
commonly used wildcards are:

- Asterisk (*) wildcard: Matches any value.

- Question mark (?) wildcard: Matches any single character.

4. Test the modified selector to ensure it still accurately identifies the desired element.

5. Use the modified selector in the appropriate activity to interact with the element in your automation
workflow Here's an example to illustrate the use of wildcards in a selector:

Let's say you have a button element in your application with the following selector:
If the button's ID attribute sometimes changes dynamically, you can use an asterisk (*) wildcard to match
any value for the ID attribute. The modified selector would be:

<webctrl id='*' />

Now, you can use the modified selector in activities like "Click," "Type Into," or "Get Attribute" to interact
with the button element, regardless of its specific ID value.

50. Automate the process through which movies can be downloaded from
YouTube

51. Perform an activity to collect prices of different products of same category


using Amazon

1. Open the Amazon website in a web browser using the Open Browser activity
2. Use activities like Type Into or Click to search for the desired category or product in the search
bar.
3. Once you are on the search results page, inspect the HTML structure of the page to identify the
elements containing the product prices. Look for common attributes like class names or HTML
tags that can be used as selectors.
4. Use the Data Scraping wizard in UiPath to extract the prices of the products. Here's how to do it:
a. Click on the Data Scraping activity from the UiPath activities panel. b. Indicate the first
product's price element on the webpage. c. Follow the instructions in the Data Scraping wizard to
configure the extraction. d. Specify the column name for the price data. e. Extract the data from
the remaining products by following the same steps.
5. Once the data scraping is complete, you will have a DataTable containing the prices of the
products.
6. You can further manipulate or process the data as per your requirements. For example, you can
filter the prices, calculate the average price, or export the data to an Excel file.

. 52. What is RE Framework? Create an activity with the help of RE Framework.


Also, explain the step-by-step procedure of the activity

The RE Framework (Robotic Enterprise Framework) is a template provided by UiPath


that follows best practices and a standardized structure for building robust and scalable
automation projects. It is designed to handle exceptions, logging, and reusability of
components, making development and maintenance easier.

To create an activity using the RE Framework, you can follow these step-by-step
procedures:

1. Create a new project in UiPath Studio and select the REFramework template.
2. Define the input arguments required for your automation process. These can
include any data or parameters needed to execute the process.
3. Modify the Init state to perform any initialization tasks, such as opening
applications, logging in, or setting up variables.
4. Customize the Get Transaction Data state to retrieve data or items to be
processed. This could involve reading from a file, querying a database, or
extracting information from a web page.
5. Implement the Process state, where the actual automation logic is performed.
This state can include activities like data manipulation, calculations, interaction
with applications, or web scraping.
6. Handle exceptions by adding the necessary error handling activities, such as Try
Catch blocks, within the Process state. These blocks help catch and manage
exceptions gracefully.
7. Update the Set Transaction Status state to handle the status of each transaction
or item being processed. This state is responsible for updating the transaction
status, marking it as completed or failed, and handling retries or exceptions.
8. Add logging activities throughout the workflow to capture important information
or errors. This helps in troubleshooting and monitoring the execution of the
automation process.
9. Customize the End Process state to perform any necessary clean-up tasks, such
as closing applications or releasing resources.
10. Run the automation project and monitor the execution. Check the logs for any
errors or exceptions and make necessary adjustments if needed.

53. Create an activity by using a state machine that explains the concept of
exception handling.

Certainly! Here's an example of an activity using a state machine that demonstrates the concept of
exception handling:

1. Create a new project in UiPath Studio and select the State Machine template.

2. Rename the default State to "Main" or any relevant name.

3. Add states to the State Machine based on the different stages or tasks of your automation process. For
this example, let's consider three states: "Initialize," "Process Data," and "Finalize."

4. Within each state, you can add activities and logic specific to that state. Here's a breakdown of each
state and its activities:\

a. Initialize State:

- Add activities to initialize the application or system, such as launching an application or logging in.

- Use Try Catch blocks to handle any initialization errors or exceptions. Within the Catch block, you can
add activities to log the error details or perform any necessary recovery actions.
b. Process Data State:

- Add activities to perform data processing tasks, such as data manipulation, calculations, or
interacting with applications.

- Use Try Catch blocks to handle any errors or exceptions that may occur during data processing.
Within the Catch block, you can add activities to handle the error, log the details, and decide whether to
retry the operation or move to a different state.

c. Finalize State:

- Add activities to perform clean-up tasks, such as closing applications, releasing resources, or
generating reports.

- Use Try Catch blocks to handle any errors or exceptions that may occur during the finalization
process. Within the Catch block, you can add activities to handle the error, log the details, and ensure
proper clean-up.

5. Connect the states using transitions to define the flow of the automation process. For example, after
the "Initialize" state, you can transition to the "Process Data" state, and after the "Process Data" state, you
can transition to the "Finalize" state.

6. Additionally, you can add a global exception handler to handle unhandled exceptions throughout the
entire state machine. This can be done by adding a Global Exception Handler at the top level of the State
Machine workflow. Within the exception handler, you can add activities to log the exception details, notify
stakeholders, or perform any necessary actions.

54. Create a workflow to Automate login to your (web)Email account.

1. Open UiPath Studio and create a new project.


2. Drag and drop the "Open Browser" activity onto the canvas.
3. In the Properties panel, set the desired web browser and provide the URL of your
email login page.
4. Drag and drop the "Type Into" activity onto the canvas.
5. Indicate the email input field on the web page.
6. In the Properties panel, enter the email address as input using the "Text" property
or by passing it as an argument.
7. Drag and drop another "Type Into" activity onto the canvas.
8. Indicate the password input field on the web page.
9. In the Properties panel, enter the password as input using the "Text" property or
by passing it as an argument. Note: It is generally not recommended to hardcode
passwords in the workflow. Instead, consider using secure credential activities or
external configuration files to store and retrieve passwords securely.
10. Drag and drop the "Click" activity
11. Indicate the login button or submit button on the web page.
12. Run the workflow and verify that the login process is successfully performed.

55. Create a sample workflow to perform an activity for notepad automation,


Explain step by step process with sample snapshot

1. Open UiPath Studio and create a new project.


2. Drag and drop the "Open Application" activity onto the canvas.
3. In the Properties panel, set the "Target" property to "notepad.exe" or provide the path to the
Notepad application.
4. Drag and drop the "Type Into" activity onto the canvas.
5. Indicate the text area or content area of Notepad.
6. In the Properties panel, enter the text that you want to write in Notepad using the "Text" property
or by passing it as an argument.
7. Drag and drop the "Click" activity onto the canvas.
8. Indicate the File menu or any other menu item in Notepad that you want to click.
9. If needed, you can add additional activities such as saving the file, closing Notepad, or performing
other actions.
10. Run the workflow and observe the automation process as it opens Notepad, types in the specified
text, and performs other actions based on the activities included in the workflow.

56. Create a sample workflow to Perform an activity by using various data


scraping methods. What are the steps using Data Scrapping Wizards with
example

1. Open UiPath Studio and create a new project.


2. Drag and drop the "Data Scraping" activity onto the canvas.
3. Indicate the web page or application from which you want to extract data.
4. In the Data Scraping wizard, choose the "Extract Structured Data" option.
5. Select the first data element on the web page by clicking on it.
6. The wizard will automatically detect and highlight similar data elements on the
page. Verify and adjust the selection if needed.
7. Once the selection is confirmed, click on the "Next" button.
8. In the next step, the wizard will ask you to define the columns and data types for
the extracted data.
9. Select the columns you want to extract from the data elements and provide
appropriate names and data types for each column.
10. Click on the "Finish" button to complete the Data Scraping wizard.
11. The wizard will generate a "Data Table" output variable that contains the
extracted data.
12. You can use activities like "For Each Row" to iterate through the extracted data
and perform actions on each row.

Example:

Let's consider an example of extracting product information from an e-commerce


website:

1. Open UiPath Studio and create a new project.


2. Drag and drop the "Data Scraping" activity onto the canvas.
3. Indicate the web page that displays the product information.
4. In the Data Scraping wizard, choose the "Extract Structured Data" option.
5. Select the first product name on the web page by clicking on it.
6. Verify that the wizard has correctly identified similar product names on the page.
Adjust the selection if needed.
7. Click on the "Next" button.
8. In the next step, select additional columns such as price and rating by clicking on
the respective elements on the page.
9. Provide appropriate names and data types for each column.
10. Click on the "Finish" button to complete the Data Scraping wizard.
11. The wizard will generate a "Data Table" output variable that contains the
extracted product information, including product name, price, and rating.
12. You can use a "For Each Row" activity to iterate through the extracted data and
perform actions on each product, such as logging the details or saving them to a
file.

You might also like