Scroll Until “X” Command
The Scroll Until “X” command scrolls in the specified direction until a target element appears. All targets must be enclosed in double quotes to ensure stable and precise detection. The scroll intent must be explicit: what direction to scroll, what target to look for, and where the target belongs.
1. Scroll Until Element Appears
When to use:
Navigating long vertical pages
Jumping to a CTA button below the fold
Returning to the top of a page
Accessing sections hidden by screen height
Example:
Scroll down until "Proceed to Pay"
Scroll up until "Home" tag is visible
Scroll right until "Next" CTA is visible
2. Scroll Until With Clear Intent (Recommended)
When to use:
Locating a specific labelled section
Reaching UI elements that trigger next actions
Ensuring stable scroll movement when the label is unique
Stronger stability versus blind scrolling
Example:
Scroll down until "Apply Coupon"
Scroll up until "Back to Top"
Scroll right until "More Categories"
3. Scroll Until With Section / Header Context
When to use:
Product grids grouped by category
Lists segmented by headers
Sections that contain repeated patterns (cards, tiles, rows)
When multiple identical product tiles exist
Ensures Drizz searches only within the correct context
Example:
Scroll down until you find 4 product cards under "Beauty"
Scroll down until items appear under "Snacks"
Scroll up until offers are visible under "Top Deals"
4. Scroll Until Inside a Container
When to use:
Screens with nested scrollable regions
App layouts where reviews, details, or related items scroll separately
To avoid unintended scrolling of the entire page
Ensures precision when scrolling must be restricted to a specific block
Example:
Scroll down inside product list until "Add to Cart"
Scroll right inside categories until "Electronics"
Scroll down inside reviews until "Write a Review"
Last updated
Was this helpful?