Validate

The Validate command is used to confirm the presence, visibility or correctness of UI elements, screen states, text or application responses. Drizz identifies the target using visible labels, contextual hints or screen-level structure. Manual inspection steps or screenshot matching are not required, as Drizz intelligently verifies the specified UI state using Vision AI.

1. Basic Validate

1.1 Validating directly visible text or elements

Used when the target is clearly identifiable on the screen.

Examples:

Validate Home is visible

Validate Order Placed tag is visible

Validate Login CTA is visible

Drizz confirms the presence of the exact label on the visible screen.

2. Validate With Contextual Field or Section Reference

When multiple identical labels exist, providing context ensures precise targeting.

2.1 Using section-level context

Validate Active tag is visible in subscription section

Validate Apply CTA is enabled in the coupon area

2.2 Using header or parent section

Validate Address is present under Profile

Validate Total in the order summary section

2.3 Using nearby or associated element

Validate In Stock tag near product title

Validate ₹499 next to MRP is present

3. Validating Multiple Similar Texts or Repeated Elements

Used when the same text appears multiple times on screen. In case of presence of multiple UI with similar tags, use more context for better execution of command.

Example:

Validate Apply CTA is present beside the first coupon

Validate cancel CTA is disabled beside Apply coupon of first coupon

3.1 Distinguishing by position

Validate the first "Add" CTA

Validate the last "Remove" CTA

3.2 Distinguishing by element grouping

Validate "Edit" is present inside personal details section

Validate "Select" is enabled in delivery options

3.3 Tables, lists, and repeated list-items

Validate "Delivered" tag is visible in order history list

Validate "Pending" is visible in task row

4. Advanced Calculation Validation Using Drizz MCP

Drizz includes an in-house Mathematical MCP that performs advanced arithmetic and multi-field validations directly from the UI. No formulas or scripting are required, simply describe the calculation to validate.

Examples:

  1. Validating Summations:

    1. Validate that total equals sum of item prices

    2. Validate that cart value equals sum of all product costs

  2. Validating Discounts & Percentage Logic

    1. Validate that discount equals 10% of subtotal

    2. Validate that final price reflects applied coupon discount

  3. Validating Price Details & Final Amount

    1. Validate that final amount equals subtotal + tax + delivery charges

    2. Validate that payable amount equals total - discount

  4. Validating Savings & Differences

    1. Validate that savings equal MRP minus selling price

    2. Validate that cashback equals 5% of total amount

  5. Validating List or Table-Based Totals

    1. Validate that invoice total equals sum of all row items

    2. Validate that line item amount equals unit price multiplied by quantity

  6. Multiple Calculations in One Command (Single Line)

    1. Validate the following calculations: 1. Subtotal+Tax=Total 2. Total-Discount=Final Amount

5. Validate Dynamic, Changing, or Auto-Updated UI States

Used when validating screens that update content dynamically (checkout totals, search results, recommendations).

5.1 Text expected after dynamic data load

Drizz waits until the UI is loaded and attempts three validation attempts.

5.2 Auto-updated total or computed values

Validate "₹999" in summary section

Validate discount displayed is correct

6. URL-based validation (Web-only)

Validate URL contains "/checkout"

Validate URL is "https://example.com/home"

7. Edge Cases

7.1 Validation attempted during loading or transition

Drizz waits until the UI is loaded and attempts three validation attempts.

7.2 Validating dynamic labels with partial matches

Validate text contains "Success"

Validate text starts with "Order"

Last updated

Was this helpful?