Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

1. Display the Resources tab and its search bar

Image Modified

1.1 Select the Resources tab.

Image Modified

2 .  Creating resources

2.1 Creating a variable.

Image Modified

2.2 Creating a "file" resource.

Image Modified

2.3 Creating a web element resource.

Image Modified

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

Image Modified

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

Image Modified

Enter “Variable 1”

Image Modified

Enter "File"

Image Modified

Enter "Web"

Image Modified

Enter " Win"

Image Modified

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".

Image Modified

In the " Reverse 1" action, specify the resource "Variable 1" as the input parameter "Text".

Image Modified

In the " Reverse 2" action, specify the "Variable 1" resource as the output parameter.

Image Modified

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" *

Image Modified

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).

Image Modified

5.2. In "Read text file 1" specify the resource "File 1" as input parameter

Image Modified

5.3 In "Open document 1" specify the resource "File 1" as input parameter

Image Modified

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".

Image Modified

Image Modified

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".

Image Modified

6.2 . In "Send text 1", specify the resource "Web-element 1" as the input parameter.

Image Modified

6.3. In "Send click 1", specify the resource "Web-element 1" as the input parameter.

Image Modified

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".

Image Modified

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".

Image Modified

7.2. In "Window focus element 1", specify the resource "Win-element 1" as the input parameter.

Image Modified

7.3. In "Get element text 1", specify the resource "Win-element 1" as the input parameter.

Image Modified

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".

Image Modified

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.

Image Modified

8.2 . In the "Convert Data 1" action, specify the resource property "Win-element 1" : "Win-element 1.WindowName" as the input parameter.

Image Modified

8.3. In the "Replace Matches 1" action, specify the resource property " Win-element 1" : "Win-element 1.Definition" as the output parameter.

Image Modified

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".

Image Modified

8.7 . Add actions "Convert data 2" and "Replace matches 2".

Image Modified

8.8. In the "Convert data 2" action, specify the "Web-element 1" resource property : "Web-element 1.XPath" as the input parameter.

Image Modified

8.9. In the "Replace matches 2" action, specify the resource property "Web-element 1" : "Web-element 1.DisplayName" as the output parameter.

Image Modified

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".

Image Modified

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.

Image Modified

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.

Image Modified

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.

Image Modified

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.

Image Modified

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".

Image Modified

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.

Image Modified

12. Search by partial match

12.1. In the Studio settings in the "Exact match search" field uncheck the box, if checked.

Image Modified

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.

Image Modified

14. Deleting actions that use resources and their properties

...

Let's delete the "Read text file" action.

Image Modified

Result

Image Modified

15. Deleting resources

...

Let's remove the File parameter and check.

Image Modified

Result

Image Modified

As you can see the search did not yield any results as the resource has been removed.