История страницы
...
1. Display the Resources tab and its search bar
1.1 Select the Resources tab.
2 . Creating resources
2.1 Creating a variable.
2.2 Creating a "file" resource.
2.3 Creating a web element resource.
where:
1 – Resources tab
2 – Create resource button
3 – Input field for the attribute that the robot will refer to
4 – Drop-down list where we will select the attribute
2.4 Creating a win-element resource
To create a win element you need to launch the spy. In the spy it is necessary to select the capture button and then already point at the necessary win element and by pressing the button LCTRL and LMB we capture the necessary element. After that we press the save button.
...
Enter 1 in the "Resources" field
Enter “Variable 1”
Enter "File"
Enter "Web"
Enter " Win"
Since the resources are not used anywhere, there is no drop-down list near the resource record (no "Expand" button) and nothing happens when you click on the resource record itself.
...
Add two actions " Reverse 1" and "Reverse 2".
In the " Reverse 1" action, specify the resource "Variable 1" as the input parameter "Text".
In the " Reverse 2" action, specify the "Variable 1" resource as the output parameter.
4.2. Click on the "Search" ( Magnifier) button on the top panel, select the "Resources" tab and clear the search bar (see in section 1.1)
...
*4.5. Click on each item in the drop-down list: " Reverse 1" and "Reverse 2" *
If we click on " Reverse 1", "Reverse 2", we will be taken to the action itself, where this variable is used.
...
5.1. Add two actions "Read text file 1" and "Open document 1" (for example, from the "Word" group).
5.2. In "Read text file 1" specify the resource "File 1" as input parameter
5.3 In "Open document 1" specify the resource "File 1" as input parameter
5.4. On the top panel, click on the "Search" button (Magnifier), select the "Resources" tab and clear the search bar
...
5.7. Click on each item in the drop-down list: ""Read text file 1" and "Open document 1".
When you click on a line with the "Read text file 1" entry, the Studio scrolls through the script and focuses on the "Read text file 1" action, the properties panel displays the properties of the "Read text file 1" action
...
6.1. Add two actions "Send Text 1" and "Send Click 1".
6.2 . In "Send text 1", specify the resource "Web-element 1" as the input parameter.
6.3. In "Send click 1", specify the resource "Web-element 1" as the input parameter.
6.4. On the top panel, click the "Search" (Magnifier) button, select the "Resources" tab, and clear the search bar.
...
6.7. Click on each item in the drop-down list: "Send text 1" and "Send click 1".
When you click on a row with a "Send text 1" entry, the studio scrolls through the script and focuses on the "Send text 1" action, the properties panel displays the properties of the "Send text 1" action When you click on a row with a "Send click 1" entry, the studio scrolls through the script and focuses on the "Send click 1" action, the properties panel displays the properties of the "Send click 1" action
...
7.1. Add two actions "Window focus element 1" and "Get element text 1".
7.2. In "Window focus element 1", specify the resource "Win-element 1" as the input parameter.
7.3. In "Get element text 1", specify the resource "Win-element 1" as the input parameter.
7.4 . On the top panel, click on the Search (Magnifier) button, select the Resources tab, and clear the search bar.
...
7.7. Click on each item in the drop-down list: "Window focus element 1" and "Get element text 1".
When you click on the line with the entry "Window focus element 1", the studio scrolls through the script and focuses on the action "Window focus element 1". The properties panel displays the properties of the "Window focus element 1" action.
...
8.1. Add the "Convert data 1" and "Replace matches 1" actions.
8.2 . In the "Convert Data 1" action, specify the resource property "Win-element 1" : "Win-element 1.WindowName" as the input parameter.
8.3. In the "Replace Matches 1" action, specify the resource property " Win-element 1" : "Win-element 1.Definition" as the output parameter.
8.4. On the top panel, click on the "Search" (Magnifier) button, select the "Resources" tab.
...
8.6 . Expand the drop-down list for the resource " Win-element 1".
8.7 . Add actions "Convert data 2" and "Replace matches 2".
8.8. In the "Convert data 2" action, specify the "Web-element 1" resource property : "Web-element 1.XPath" as the input parameter.
8.9. In the "Replace matches 2" action, specify the resource property "Web-element 1" : "Web-element 1.DisplayName" as the output parameter.
8.10. On the top panel, click the Search button (Magnifier), select the Resources tab. Activate the search by entering "Web-element" Expand the drop-down list for the resource "Web-element 1".
8.11. On the top panel, click the Search button (Magnifier), select the Resources tab. Activate the search by entering "File" in it Expand the drop-down list for the resource "File 1" on the "Files" tab.
8.12. On the top panel, click on the "Search" button (Magnifier), select the "Resources" tab. Activate the search by entering the number "1" in it Expand the drop-down list for each of the resources.
9 Checking with several resources of the same type
...
9.3. On the top panel, click on the "Search" button (Magnifier), select the "Resources" tab and check each of the resource types by activating the search by typing the resource name.
10 . Reopen the studio and again check each tab on the Resources tab in the Search functionality
...
11.1. Add the "Add object 1" action to the script, increase the number of parameters.
11.2. In the "Object" parameter, specify the resource "Variable 1".
...
In the "Object 3" parameter, specify the resource property "Web-element 1" : "Web-element 1.Definition".
11.3. On the top panel, click on the "Search" (Magnifier) button, select the "Resources" tab, and check each resource by activating the search by typing the resource name.
12. Search by partial match
12.1. In the Studio settings in the "Exact match search" field uncheck the box, if checked.
12.2. Enter in the search field: "Variable".
...
13.2 . On the top panel click on the "Search" button ( Magnifier), select the "Resources" tab and check each resource by activating the search by resource name. There is a bug: if you remove variables from actions and search in resources, it will still show that the variable in the action is used, although this variable is removed from the action. Only reloading the studio helps.
14. Deleting actions that use resources and their properties
...
Let's delete the "Read text file" action.
Result
15. Deleting resources
...
Let's remove the File parameter and check.
Result
As you can see the search did not yield any results as the resource has been removed.