Slide Command

Purpose: Performs a sliding action with a customizable direction and percentage, allowing more precise control over gesture-based interactions.

Syntax:

slide: direction percentage; xPos; yPos

Parameters:

  • direction: left or right

  • percentage: Integer (e.g., 30) to represent the intensity of the slide

  • xPos, yPos: Coordinates representing the starting position of the slide.

Example: To perform a slide left with 30% intensity starting from coordinates (100, 200):

slide: left 30; 100; 200

This command is beneficial for testing advanced gesture interactions, such as swiping partway to reveal actions or snapping elements.

You can also combine the slide command with element IDs to make it more specific. For example, you could say:

slide 10% to the left on the element.id "big-button"

Last updated