Robotic Process Automation
Robotic Process Automation
No.
1.A Create a simple sequence-based project. (Take input 15/10/22
from the user store it in a variable and print output)
1.B Create a flowchart-based project. (Get two numbers 15/10/22
from the user and check if it is equal or not. If not equal
enter two numbers again)
1.C Create an UiPath Robot that can empty a folder in 15/10/22
Gmail solely based on the recording.
2.A Automate UiPath Number Calculation (Subtraction, 22/10/22
Multiplication, Division of numbers).
2.B Create an automation UiPath project using different 22/10/22
types of variables. (number, DateTime, Boolean, generic,
array, data table)
3.A Create an automation UiPath Project using decision 05/11/22
statements. ( take the number from the user, the check is
it even or odd).
3.B Create an automation UiPath Project using looping 05/11/22
statements.
4.A Automate any process using the basic recording. 05/11/22
(Change the font, font style, and font size of written data
inside the notepad).
4.B Automate any process using the Desktop recording. 12/11/22
(Notepad text saving process).
4.C Automate any process using web recording. (Login 12/11/22
process to amazon website).
5. Consider an array of names. We have to find out how 26/11/2
many of them start with the letter "a". Create an
automation where the number of names starting with
"a" is counted and the result is displayed.
6.A Create an application automating the read, write and 26/11/22
append operation on an excel file.
6.B Automate the process to extract data from an excel file 26/11/22
into a data table and vice versa.
7.A Implement the attached window activity. (Save the text 03/12/22
in notepad).
7.B Find different controls in UiPath. 03/12/22
2. Click on sequence, and add Input Dialog activity inside the sequence. Give appropriate Dialog Title,
Input Label, Input Type, Value enter values. Dialog Title as “User input” and Input Label as “Enter your
name:” must be in double quotes.
3. Create a variable in the Variable panel with name as Name, Variable Type as String, and Scope as Main
Sequence.
4. Add activity Message Box, enter the variable name with text as “My name is”+ Name.
Process Output:
Enter your name and click on ok to see the result.
Practical no: 1. B.: Create a flowchart-based project. (Get two numbers from the user and check if it is
equal or not. If not equal enter two numbers again).
Process step:
1. Search for Flowchart activity in the activity panel and add that activity inside the designer panel.
2. Click on the flowchart activity and add two Input Dialog activities inside the flowchart. Give appropriate
Dialog Title, Input Label, Input Type, and Value entered. Dialog Title as “user input” and Input label as
“Enter Num1”,” Enter Num2” must be in double quotes.
3. Create variables inside the Variable panel with names Num1 and Num2, variable type as Int32, and
variable scope as a flowchart. Assign variable name in the value entered to each Input Dialog.
4. Add Flow Decision activity in flow. inside the properties panel Give the condition “Num1 = Num2”. If
the condition is true then flow goes to the true block and if the condition is false then flow goes to the
false block.
5. Add Message Box activity and enter the text as “Num1 and Num2 are equal” in the true block. And
“Num1 and Num2 are not equal “ in the false block.
6. If the condition is not equal direct the flow to the input dialog activity. Run the process using Run Button.
Process Output:
Enter two numbers and check if it equal or not
Practical no.: 1. C.: Create an UiPath Robot that can empty a folder in Gmail solely based on the recording.
Process steps:
1. Add Sequence activity inside the designer panel.
2. Start recording using the Web/Application recorder on Ribbon.
3. Click on the Gmail login page on the browser. Click the Input field, select the Type Into option and
click on the confirmation Button. Enter your email address in Type Into.
4. Click on the Next button and click on the confirmation button. It will go to the next process.
5. Click the Input field of the Password, select Type Into and click on the confirmation button. Enter your
password in Type Into and select the invisible option, it will show an asterisk instead of password
characters.
6. Click on the Next button and click on the confirmation button now you will log in to a Gmail account.
7. Here we can empty the trash bin. Click on the More option and confirmation button.
10. Click on the Delete Forever button and click the confirmation. You will delete one or more mail from
the bin permanently.
3. Create variables inside the variable panel with the names Num1 and Num2, Variable Type Int32, and
Variable Scope as Sequence. Assign variable names in the value entered in each Input Dialog.
4. Add Assign activity, assign addition, subtraction, multiplication, and division operation to the result
variable as “result = Num1+Num2”, ”result=Num1-Num2”, ”result=Num1*Num2”,
”result=Num1/Num2”.
5. Add Message Box activity after each Assign activity to print the result of operations. Add the result
variable side the text of the message box activity
3. Add For each activity inside the sequence. Enter the variable that you want to print in the body to ForEach
part assign variable arrayvar inside the in part.
4. Add a Message Box activity in the body of Each activity. Enter text as “The alphabet is” + latter.’
5. Use Run Button to run the process. it will print all elements inside the array.
Process Output:
When we run the process for each activity will print each element inside the arrayvar variable.
Number variable:
Process Steps:
1. Create age and name variables inside the variable panel. Age variable with Type Int32, Scope as
sequence, and the name variable with Type String, scope as Sequence.
4. Add Message Box activity after that and add Text as “ Your name is “+name+ “ and age is
”+age.ToString+” .“.
4. Add Output Data Table activity after Data Table activity adds Tabledata variable in the input of output
data table and result variable in output part of the output data table.
5. Add Message Box activity after the Output Data Table. In Text add a result variable to print data stored
in it.
Process Output:
DataTime Variable:
Process Step:
1. Add Sequence activity in designer panel.
2. Create variable name variable1 with Variable type System.DateTime, and Scope Sequence.
3. Add assign activity, inside sequence activity . Assign Now() to variable variable1 this will take system
current date and time and store into variable1.
4. Add Message Box activity after assign activity, add Text ‘variable1.ToLongDateString+ “, “+
variable1.ToLongTimeString’.
Practical no.:3.A: Create an automation UiPath Project using decision statements( take the number from
the user, the check is it even or odd).
Process steps:
1. Add Sequence activity inside the designer panel.
2. Inside the sequence add activity Input Dialog. Give the Dialog Title “The number is even or odd”, and
Input Label “Enter the number” both must be in double quotes. Select Input Type as “Text Box”, and the
value entered.
3. Inside the Variable panel create a variable name as a number. Set Variable Type as Int32, and Scope as
Sequence add the variable to Value entered inside Input Dialog.
4. Add If activity (decision making) after the Input Dialog. Set Condition as “ number Mod 2 =0” and inside
the Then block add Sequence along with Message Box activity, add Text along with the variable name
as “number.ToString+” is Even””.
5. Inside the Else block add Sequence along with Message Box activity, and add the text along with the
variable name as” number.ToString+ “ is Odd”.
4. Create variable inside variable panel with name n. add variable to value entered inside Input Dialog.
5. Add If activity after the Input Dialog set Condition as “ n Mod 2 = 0”. Inside Then block add Sequence
along with Message Box activity with Text as “ n.ToString+’ is even..’”.
6. Inside the Else block add Sequence along with Message Box. Add Text in Message Box as “ n.ToString+’
is odd’”.
7. Add Condition inside Do While activity as “ n Mod 2 <> 0”. The loop will continue the execution until
we get an even number.
8. Run the process using Run Button.
Process output:
Practical No.: 4. A: Automate any process using the basic recording. (Change the font, font style, and font
size of written data inside the notepad).
Process Step:
1. Add sequence activity inside the designer panel. Select basic recording from the ribbon and start
recording.
2. Open the notepad application by clicking on the Notepad Application icon on a desktop screen and click
on the confirmation button.
3. Select Type Into activity in the recording panel, indicate the notepad area where we type text, and
confirm it. Add the text “hello basic recording” and press the enter button.
4. Select Click activity from the recording panel, click on the Edit option in the notepad application and
click on the confirmation.
5. Select click activity from the recording panel, click on select all option inside the edit and confirm it.
Which selects all text on the screen.
6. Add Click activity from the recording panel, click on the Format option in note pad application and click
on the confirmation button.
7. Select the Click activity from the recording panel, click on the Font option inside the Format and
confirm it. This will open a window that contains multiple font styles and sizes.
8. Add Click activity from the recording panel, select the font type from the list and confirm it.
9. Select Click activity from the recording panel, select the font style from the list and confirm it.
10. Select Click activity from the recording panel, select the font size and confirm it.
11. Select Click activity from the recording panel, and click on ok which changes the font style and size as
well.
12. Run the process using Run Button, this will automate the process of changing the font style and size of
the entered text in the notepad application.
Practical No.: 4. B: Automate any process using the Desktop recording. (Notepad text saving process).
Process Step:
1. Add sequence inside the designer panel.
2. Open the notepad application on the desktop. Select Desktop recording from the ribbon and start
recording. In the desktop recording process of notepad application will open and combine in one Attach
window activity.
3. Select the Type Into activity from the desktop recording panel and indicate the area to enter the text in
notepad, click the confirmation button. Add text “hello this is basic recording”.
4. Select the Click activity from the desktop recording panel, click the file option from the notepad and
confirm it.
5. Select the Click activity from the desktop recording panel, click the save as option from the file option
and confirm it this activity will be open in one Attach Window activity.
6. Select the Type Into activity from the desktop recording panel, click on the file name option type the
file name you want to save, and click on the confirmation button. The save process will be combined in
another Attach Window activity.
7. Select the Click activity from the desktop recording panel, click on the save button and confirm it.
8. Run the process by clicking the Run button.
Practical No.: 4. C: Automate any process using web recording. (Login process to amazon website).
Process Step:
1. Add Sequence activity inside the designer panel.
2. Select web/ Application recording from the ribbon. And start recording.
3. Open the amazon login page, to use it for processing it is using the application browser activity.
4. Click on the login icon and confirm it. This will open the amazon login page.
5. Select the email or mobile input field and select the input type and click on the confirmation button.
Add your mobile number inside the input type.
6. Click on the continue button and confirm it. It will redirect to the password page.
7. Select the password input field and select the input type and click on the confirmation button. Add a
password inside the input type.
8. Click on the sign in button and confirm it. It will redirect to the amazon shopping website.
Practical No.: 5. A: Consider an array of names. We have to find out how many of them start with the
letter "a". Create an automation where the number of names starting with "a" is counted and the result is
displayed.
Process steps:
1. Add sequence activity in the designer panel.
2. Create variables with name names and count respectively in the variable panel. The variable type for
names is Array of T[] along with String data type and count variable with Int32. And Scope as Sequence
for both variables.
3. Add For Each activity, assign For Each items in the Names variable. Within the body of For Each activity
add If activity, with the condition of ‘items.ToString.StartWith(“A”)’. If there is any name that starts with
the letter ‘A’(case sensitive) then it will go to Then block part of If activity.
4. In Then block add Assign activity and assign the ‘count’ variable to ‘count+1 ‘. The count will be
incremented when there is more than one name starting with the letter ‘A’.
5. Outside the For Each activity add Message Box activity. Add Text as ‘count+” names available that start
with ‘A’. it will showcase items starting with the letter ’A’.
6. Run the process using the Run Button.
Process Output:
Practical No.: 6. A: Create an application automating the read, write and append operation on an excel
file.
Process Step:
1. Add Sequence activity inside the designer panel.
2. Inside the variable panel create variables results and Data_t with Variable Type String and Data
Table respectively, and both have scope as a sequence.
3. Inside the Sequence add Excel Process scope activity, which helps to perform excel operations.
4. Add the Write Cell workbook activity, and add the appropriate workbook path.
Sheet name: “Pract6b”,
Cell write data: “H10”,
Text: “Hello”.
7. Add Build Data Table activity, create a column as names add a few names as per the list of the column,
and store it with a variable name “Data_t”.
8. Add Append Range workbook activity, give the appropriate workbook path, sheet name as “Pract6b”,
and provide the variable name that stores table data into the excel sheet.
After append
Practical No.: 6. B: Automate the process to extract data from an excel file into a data table and vice versa.
Process Code:
1. Add sequence activity inside the designer panel.
2. Add Excel Process Scope activity inside the sequence to perform Excel operation.
3. Inside the variable panel create variables ReadFromExcel and BuildDataToExcel with Variable Type
DataTable and ReadFromExcelOutput with Variable Type String all variables have variable Main
Sequence scope.
4. Add Read Range Workbook activity inside the do part to give the appropriate path of the excel file and
this activity stored data from excel to ReadFromExcel variable.
Sheet Name: “Pract6”
Range:” H10”
DataTable: “ReadFromExcel”
5. Add Output Data Table activity, this activity will store data From ReadRangeExcel variable to
ReadFromExcelOutput variable.
6. Add Message Box activity, it will read from the ReadRangeExcelOutput passes to Message Box to show
the result.
7. Add Build Data table activity, add column name location and add some locations in it. Store the data
table to BuildDataToExcel variable.
8. Add the Write Range Workbook activity, add the appropriate path, and pass BuildDataToExcel variable.
Sheet name: “Pract6”
Starting cell: “H19”
DataTable: “BuildDataToExcel”
2. Inside the Do activity, add Type Into activity indicates an area where you want to insert the text “hello
this is attached window practical” and confirm it.
3. Add Click activity indicate file option from notepad and confirm it.
4. Select Save as an option inside the file option by using the Click activity and confirm it.
5. Add another Attach Window activity indicating the file save as a window in it.
6. Add Type Into activity, indicate to file name option enter the name that you want to save, the text will
be “attachwindow.txt” and confirm it.
7. Add Click activity, indicate the click button, and confirm it.
2) Add WriteLine Activity within Sequence activity, add the following text in the textbox: “What is
your name?”.
3) Add Delay Activity after WriteLine Activity, set duration in delay activity “00:00:50” (HH:MM:
SS).
4) Add another WriteLine Activity after the Delay activity, and add the following text in the textbox:
“My name is Abhishek”.
Process Output:
2. Break Activity. (add Break Activity within while activity).
Process Steps:
3) Create variable name “num” with variable Scope Sequence, variable type Array int32, and
add default values “{1,2,3,4,5,6}”.
4) Now, assign the value of the array integer variable to the currentItem variable in the foreach
activity.
5) Add WriteLine Activity, add text in the textbox: “ currentItem.ToString”.
6) Add Break Activity after WriteLine Activity.
7) Run the process using the Run button. It will display one element, Break activity will break the
execution of the process.
Process Output:
3. While Activity. ( Multiples of 5 till the 50).
Process steps:
1) Add Sequence Activity inside the designer panel.
2) Add While Activity within the sequence and set the condition as “num<50”.
3) Create a variable inside the variable panel with the name “num”, variable scope as Sequence,
and variable type as Int32 set default value 5.
4) Add Assign Activity inside the body of the while activity “ num = num+5”.
4) Add Assign Activity inside the body of the Do While activity “number = number +2”.
3) Create variable name “character” with variable type Array of String, variable scope
sequence, default values are {“A”, “B”, “C”, “D”, “E”, “F”, “G”, “H”, “I”, “J”, “K”, “L”}.
2) Add Input Dialog Activity and connect to the start process. Give appropriate input labels and
titles within quotes. Input label as “Enter First Number”, “Enter Second Number”.
3) Create variables in the variable panel “number1” and “number2” with variable type int32,
variable scope flowchart.
4. After that add Click activity and indicate minimize button on the word application.
5. Add-Type Into activity after clicking activity. Add text into Type this as “Hello this is word”.
6. Add another Type Into activity. Add text into Type this as “Abhi27@#” and select a secure option in it,
there is no text visible.
7. Run the process using the Run Button.
Practical No.:8. A: Demonstrate the following events in UiPath:
1. Element triggering event
2. Image-triggering event
3. System Triggering Event
3. In actions add sequence activity inside that add Message Box activity add text as “add a comment
here!....”.
4. Add a break activity to break the process.
5. Run the process by using Run Button.
Process Output:
Click on the word comment.
4) Add MessageBox Activity inside sequence of action part of trigger process scope, add text “click on
enter button…”.
5) Run the process using Run button.
Process Output:
Press the enter button on the keyboard.
A.2: Image-triggering event.
Process Step:
1. Open the image in the background.
2. Add sequence activity inside the designer panel. Add trigger scope activity in Sequence.
3. In the trigger, scope add Click Image Trigger activity. Drag the specified area from an image by
indicating it on the screen.
4. Inside the action add a sequence that adds Message box activity entered the text as “this is note pad”.
3. Add Hotkey Trigger activity inside the triggers part and select the “tab” key.
4. Actions Sequence activity, add Message Box activity add text as “Hotkey trigger activated”.
2. Inside the Sequence activity, add Trigger Scope activity. Add Mouse Trigger in triggers.
3. The action section has sequence activity inside this activity add Message Box activity.
4. In the Action section add sequence activity, and inside sequence adds Message Box activity.