RPA | A2019 Recorder Command/Package| Automation Anywhere - Part-25
A2019 Recorder Package | A2019 Recorder Command is used to record or capture the object properties of web applications as well as desktop based applications. This command was previously known as object cloning command in Automation Anywhere version 11.
Note :- To use the Recorder Package we must first install this package. To install the recorder package go to Bots->My Bots->Packages and then enter the recorder in the search box and then hit enter and the result will be shown. Then you will get to see three dots on the right side of the result click three dots and then click on Pre-load packages. The package will be installed within few seconds.
A2019 Recorder command is basically used to capture the object properties when we interact with the web as well as desktop based applications such as text box, button, table, radio button, combo box, check box, list view, link, tree etc.
When we capture an object, the recorder or the Universal recorder will capture the object properties that will identify the object during runtime. Once we have captured the object, specify the action that needs to be performed on that specific captured object i.e. whether we want to retrieve the total number of rows if it is a table object that we have captured or on table object we can fetch each row one by one of the table and many more actions we can perform.
We can use the Capture command under the Recorder Action or simply use the universal recorder to capture the object properties of the controls that are present either on the web application or the desktop based application.
Now first of all we will discuss the case which we will demonstrate to illustrate the working of Recorder Package.
Use Case - Open the URL or the NSE website and then capture the table from that website and write the extracted table records into the excel file.
Now we will first see the steps to record web-based application as to how it works.
- First of all we will launch the website i.e. https://www.nseindia.com/ using the "Launch Website" command.
- Once the website or the URL is opened, then we will use either the "Capture" command under the "Recorder" Package or use the Universal Recorder to capture the table present on the website and store the output into a table variable.
- Now Open the Excel file in which we want to write the data.
- Now loop through all the items or the rows present in the table i.e. use the for each row in table loop and give the table variable name in the Table variable field and then assign the current row to a record variable.
- Convert the number created variable to a string variable type using the Number to String command.
- Then use the Set Cell command to write the data into the specified columns.
- After we have set the data using the Set Cell command then increment the counter variable using the Number: Increment Action.
- After writing the data use the Close command to close the excel file and check the "Save Changes" when closing file checkbox.
- Finally close the NSE window that we opened to capture the object properties of a table.
Good job
ReplyDelete