Skip to main content
testdriver/scroll-until-image.yaml

Description

The scroll-until-image command is used to scroll the screen in a specified direction until an image matching the given description is found. This is useful for navigating to visual elements that aren’t initially visible on the screen.

Arguments

Use either the description or path argument to match an image on the screen. If you are using path argument, make sure to upload an accurate representation of the actual image and reference it relative to the current test path.

Example usage

Or, you can use the path argument to match an image on the screen (similar to match-image):
testdriver/scroll-until-image.yaml

Protips

  • Use clear and concise descriptions for the image to improve detection accuracy.
  • Adjust the distance value to control how far the command scrolls before giving up.
  • Combine this command with other commands like hover-image or match-image to interact with the located image.

Gotchas

  • If the image can’t be located within the specified distance, the command will fail.
  • Ensure the description accurately represents the image to avoid detection issues.

The scroll-until-image command is ideal for navigating to visual elements that are off-screen and can’t be located using text-based commands.