Order is the ordinal number of an element. It works considering the selected properties. If multiple elements are found based on the selected properties, "Order" allows specifying which of these found elements is needed.
Order - a string value. The "Order" property is located in Definition.
To change the order value with another action, you need to refer to it as Element.Definition.
Successful execution
Precondition: a win-element is created.
Place the «Replace matches» action on the workspace. In the «Text» field, specify the win element and its "Order" property (File.Definition).
Place the «Window focus element» action on the workspace. Fill in the fields. Event type - left-click. In the "Element" field, specify the element that was modified (File).
Result: the robot clicked on the element whose order was changed.
Let’s consider other examples described in the table below:
Precondition:
| ||||
№ | Action | Expected result | ||
1 |
|
| ||
2 | Order in the spy
|
| ||
3 | Launch action
|
| ||
4 | Change order in Definition
|
| ||
5 | There is no element matching the given sequence number with the given properties
|
|
Screenshot and display the captured element
In order to view the screenshot of a win/web/sap element on the screen, you need to:
1 way
Click on the "Edit web element", the options window will appear.
Click on the "Screenshot of the element" button, a window with the image will appear.
Positions for the button in the parameters:
The "Element screenshot" button is always displayed, if there is a screenshot saved by the spy, it will open on click, if not, the button will be inactive
The dialog window where the screenshot will appear displays a picture and a cross to close the window
The saved screenshot is stored in the project folder
If the resource (web/win element) has been deleted from the Studio, the screenshot will also be deleted
If when editing a resource (web/win element) a new element is written there via Spy, the old screenshot will be replaced or deleted
The window is not displayed on the full screen when opening a screenshot (in the size of the standard toolkit)
2 way
In the action on the Flow to which the screenshot is attached, hover over the camera icon. The screenshot will be displayed in thumbnail with the exact location of the captured item marked.
If you move the cursor away from the camera icon, the screenshot will close.
Positions for the button on the action:
The screenshot icon is displayed on those actions that use win/web elements (i.e. browser actions and Windows)
If the screenshot is not attached to win/web/sap actions, there is no screenshot icon on them
If the element is recorded via Spy, a screenshot is taken there and will be visible when hovering over the icon. If the user created the web element manually and filled in the fields, there will be no screenshot there
If you change the link to the resource in the action, the screenshot will change immediately, no need to perform additional actions (save, reopen the project, restart the Studio)