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:
Prerequisite:
| ||||
№ | Action | Expected result | ||
1 |
|
| ||
2 | Order in the spy
|
| ||
3 | Launch action
|
| ||
4 | Change order in Definition
|
| ||
5 | There is no item matching the given sequence number with the given properties
|
|
Screenshot and display of the captured item
In order to view the screenshot of a win / web / sap element on the screen, you need to:
1 way.
Click on 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 "Screenshot of item" 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.
While in action on the flow associated with the screenshot, hover over the camera icon; a thumbnail of the captured element with a precise location marker will be displayed.
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 himself 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).