Swipe to Element
  • 03 Sep 2024
  • 2 Minutes to read
  • Contributors
  • Dark
    Light

Swipe to Element

  • Dark
    Light

Article summary

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

If you use Swipe to Element, you can do this with one step and specify a feature (Sunflower).

swipe_to_element_en.png

Swipe to Element

Recording

  1. When recording, tap the Actions icon in the top right of the screen and select [Swipe to Element].
  2. Swipe until the target element is displayed (you can swipe left/right as well as up/down).
  3. When the entire target element is displayed on the screen, click on the target element.
  4. A blue square appears. Specify the detection pattern by select an area so that all of the target element's features are covered.
  5. Click the [Save] button to save.
    This is saved as a Swipe to Element step.
    scroll_to_the_element_recording.gif

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.
en_swipe_to_element_test_result.gif

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.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.