- Print
- DarkLight
This feature will be rolled out gradually to customers. Contact support if you’d like to use it.
Overview
With the Swipe to Element function, you can reach the target element reliably. This function swipes to a specified element, so the test will not fail even if the amount of swiping required to reach the element changes.
Also, with normal swipe steps, the number of steps that's recorded will be the number of swipes required to display the target element. With Swipe to Element, you can swipe based on the element's appearance, so it can be expressed in a single step.
In the example below, if you swipe until the "Sunflower" image is displayed using normal swipe steps, it would take four swipes (four steps).
If you use Swipe to Element, you can do this with one step and specify a feature (Sunflower).
Swipe to Element
Recording
- When recording, tap the Actions icon in the top right of the screen and select [Swipe to Element].
- Swipe until the target element is displayed (you can swipe left/right as well as up/down).
- When the entire target element is displayed on the screen, click on the target element.
- A blue square appears. Specify the detection pattern by select an area so that all of the target element's features are covered.
- Click the [Save] button to save.
This is saved as a Swipe to Element step.
On the Scenario Editing page, you can set the maximum number of swipes (up to 20).
The screenshot of the scenario shows the screen after swiping is complete. On the other hand, with normal swipe steps, the screenshot shows the screen before swiping.
Checking the Test Results
On the Test Result Details page, you can check the details of the actions before the element was displayed.
To see the screens up to when the target element was displayed, click the arrow on the right side of the test result screenshot for the target step.
If the step fails to find the element, you can check if the element was not detected or if it didn't exist.
The detection pattern can be adjusted using Quick Element Update.
For information on how to use Quick Element Update, please see this article.
Swiping
You can swipe on the screen without using Swipe to Element. When you swipe the screen during recording, the number of steps recorded will be the same as the number of times you swiped.
However, if the aim is to display the target element, we recommend using Swipe to Element.
Notes
During test runs, Autify will repeat the first swipe you made when creating the step. Swiping in the wrong direction may cause the test to fail. If the swipe direction is wrong or the amount of swiping is not appropriate, please re-record the step.