0% found this document useful (0 votes)
46 views21 pages

Automation Anywhere Programs

The document provides a comprehensive guide on various automation tasks using Automation Anywhere, including printing messages, reading and writing data from Excel, triggering key actions, web data extraction, email automation, and file handling. It outlines step-by-step instructions for creating bots to perform these tasks, including setting properties, managing loops, and handling errors. Additionally, it covers advanced features like using variables, message boxes, and integrating with web browsers.

Uploaded by

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

Automation Anywhere Programs

The document provides a comprehensive guide on various automation tasks using Automation Anywhere, including printing messages, reading and writing data from Excel, triggering key actions, web data extraction, email automation, and file handling. It outlines step-by-step instructions for creating bots to perform these tasks, including setting properties, managing loops, and handling errors. Additionally, it covers advanced features like using variables, message boxes, and integrating with web browsers.

Uploaded by

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

Automation

anywhere
programs
PRINT A MESSAGE
______________________
1. DRAG AND DROP A MESSAGE BOX FORM ACTION .
2. SET PROPERTIES
• ENTER YOUR MESSAGE TO DISPLAY
• SET ITS RUNNING TIME
3. SAVE AND RUN BOT
Read data from Excel
___________
1. Make excel sheet
2. Go to Action box , Excel , Excel Advance :- open

• In attributes copy file address


3. Drag and drop loop from Action box
4. From loop go to Loop Through:- All rows
5. Read visible text in cell
6. Assign current value to this

• Create variable
7. Message box : - in message box $row[0]$ $row[1]$
$row[2]$ $row[3]$

8. Save and run


Write data in Excel
___________
 For Open Excel sheet

1. Go to Action:- Excel , Excel Advance :- open


• In properties:- go to desktop :- browse :- file path (from memory location)

 For write data in Excel

2. Now again go to Action Box :- excel advance :- GO TO CELL :- Specific cell name
3. Excel advance :- set cell :- value of cell
4. Repeat Above step 3 times

 For Close excel sheet

5.Excel Advance : - Close

6. Save and run


Trigger key
_____________
1.Go to trigger

2. Write hot key trigger

3. Drag and drop hot key under triggers

4. In attributes make your own trigger key like Alt + s

5. Save and run

6. Click on run+trigger
Data From web
______________
1. Triggers
2. Hot Key triggers
3. Start
4. Bowser:open
-Specify the address shared by sir that is given below
-Also choose a web browser
5. Recorder : Capture
-browser title
-link of web page
-recapture object
-Action to take on object - Get table
-Object properties
-Save the outcome to a variable
6. Data table: Write to file
-specify data table name
-Specify a location along with file name
-overwrite file
-save and run
https://rpademo.automationanywhere.com/userlist.php
Email Automation
_________________
1. Create a bot and name it as 'EmailAutomation'
2. Search for email in Actions window
-Choose 'Send'
-Type an address in To address
- Cc and Bcc optional
- Subject:
- Choose Desktop file and specify a file
- Specify message body
- Specify from address
- Email server host : smtp.gmail.com
- Email server port
587
- specify username and password using insecure string
3. go to Manage -> specify credentials
Credential Name: Email
Description: Password for email verification
a. Attributes
b. Attribute name - your name
c. Input - standard
d. value: your Gmail id
e. Attribute name:password
F. Input - standard
g. Masked
h. Value: specify your gmail passwrd
4. Go to locker
5. Specify name
6. Locker credentials
(specify one of the credential name you just created)

Now try to use the locker and credentials you just created in the bot you were
working on

- specify username and password using credential option


Loop Package
_____________

1. Create a loop

2. Create a variable

3. Add a Message box inside the loop

4. For the message box set property -> Folder name: a variable
READING FILE NAMES
__________________

1. DRAG LOOP INSIDE WORKBENCH


2. CREATE DIFFERENT TYPE OF FILES UNDER A FOLDER (TEXT
FILES, PDF, EXCEL)
3. FOR LOOP SPECIFY, FOR EACH FILE IN FOLDER
4. SPECIFY FOLDER PATH
5. DICTIONARY TYPE VARIABLE
6. FOR MESSAGE BOX SPECIFY PROPERTIES
7. DICTIONARY VARIABLE NAME AND KEY (KEY IS 'NAME')
FILE PACKAGE
_________________

1. PROMPT FOR VALUE


A1.WINDOW CAPTION
A. PROMPT MESSAGE : 'PLEASE ENTER SOURCE STRING'
B. ASSIGN VALUE TO VARIABLE (CREATE A VARIABLE)
2. SEARCH FOR FIND INSIDE STRING IN SEARCH WINDOW
3. SET ITS PROPERTIES:
A. SOURCE STRING : VARIABLE YOU CREATED ABOVE
B. FIND STRING: ABCD
C. WHEN FINDING: MATCH CASE

OUTER LOOP FOR FOLDER AND INNER LOOP FOR FILE


CREATE A BOT FOR FILE PACKAGE
___________________________
1. NAME IT AS STRING PACKAGE
2. STRING -> IMPORT STRING FROM TEXT FILE
3. CREATE A TEXT DOCUMENT (NORMAL TEXT FILE)
4. IMPORT PROPERTIES:
A. DESKTOP FILE
B. BROWSE A FILE
C. CREATE A OUTPUT VARIABLE (VARIABLE KEY : X)
D. VARIABLE VALUE : OUTPUT

5. MESSAGE BOX:
Import string from text file
________________________
(first create a text file and save the content with a variable named x)
1. Create a bot

2. Import string from text under strings

3. Desktop file-> browse it

4. Variable key : x

5. Save the outcome to a variable.(create a new variable)

6. create a message box


a. Enter the message to display -> The variable is : name of variable you
created in step 5
Using length in above bot
__________________

1. In the same bot

2. Drag length from the Actions panel

3. Properties ->Choose a source string (same variable you created above)


3.1. Go to Actions and choose Number -> To String
a. Specify variable to convert
b. Specify output variable
4. Use a message box to display length of string -> properties->
a. Enter message to display ->Outputvariable.String:toNumber
Using substring
_________________
1. Drag find from Action

a. Source string: variable used to get string from notepad


b. Enter a find string

c. When finding : Match case

d. Assign the output to a variable.

2. Drag substring

3. Properties -> Source string (variable used to get string from notepad)

4. Start from (name given at 1.d)

5. Message box : Enter the message to display (substring function output variable)
Using Split
____________
1. Create a text file and put some names in the file separated by , or any other separator
(Also declare a variable in the text document)
2. Import a string from text file.
a. browse the file
b. variable key in text file (variable created in notepad)
c. Created variable for output
3. Drag split in same bot
a. Source string -> variable - SplitAnswer
b. Delimiter -> ,
c. Split into substring -> All possible
d. Assign the output-> Create a variable (listvar)
4. Drag a list size from Actions
a. List variable -> listvar
b. Assign the size to a variable
5. Number to string
a. Convert a variable
6. Message box->display a variable
7. Drag a loop
a. List -> Get Item
b. List Variable -> SPlitlist (variable already created)
c. Index number - $counter1$-1
c. Set loop properties - $ListSize$

8. Drag a message box


Enter the message to display: $ListDisplay$
Log to file
____________

1. Drag a log file

2. Give it a name and variable to store output

3.Save and run

Create a new bot


_________________
1. Multiple sessions Excel Bot
2. Excel advanced
a. open
b. Properties
Local session - S1(delete already existing variable name)
c. Create an excel sheet consisting of few columns (say rollno and
name and an empty column attendance)
d. Create another excel containing few names from already existing
excel (let say name of few students who were present on a particular day).
e. Browse the file in properties window
f. Sheet contains a header
3. Choose open from Excel advanced under Actions
4. Browse second excel file
a. Here mention session name as s2
b. Loop
1. iterator - excel advanced
2. session name - s1
3.Assign the current value to variable - create a variable with name record1
c. create a nested loop
1. excel advanced
2. session - s2
3. Assign value to variable - create a record2 variable
5. Actions - if
a. Drag if inside nested loop
b. Condition - string condition
c. source value - record1 (By name - Student_Name[this is the column name we are
searching for])
d. target value - record2 (By name - Student_Name[this is the column name we are
matching])
6. Now we will update first excel using second excel
7. Drag - Set cell
8. Set cell -> properties ->
9. Drag String : to number before your nested loop
10. Enter the string : $record1{"Student_Rollno"}$
11. Create a new variable for - Assign the output(stud_record)
12. Drag - Number to increment ($stud_record by 1)
13. Set cell -> properties ->
a. specific cell - C$Stud_Increment$ (as data is to be pasted in Column C)
b. cell value - P (P for present)
c. Session name- S1
14. go to if and use convert number to string ($stud_record is to be converted here
also)
Browser Bot
____________
1. Create a bot
2. Drag Bowser:open
(Give the address of file shared by sir in the whatsapp group ->developer.automation)
3. Excel advanced: Open
4. Drag loop
a. Loop through all rows
b. Session - BrowserS1
c. create a variable
5. Recorder capture:
6. Open the webpage shared by sir
7. Action to take -> Set Text
8. Keystrokes
a. Enter keystrokes
b. Insert a variable(record variable you created above in point 4, imdex 0)

9. Drag multiple record capture inside loop for every column and repeat step 8 for
every column, just keep on writing correct column name.
Error handling
______________

1. Error handler: Try


a) File: Open
2. Error handler: Catch
3. Assign exception message - create variable
4. Assign line number

You might also like