Skip to content

WIP ‐ Accuracy ‐ Subscription Based

Sai Krishna edited this page Nov 13, 2024 · 7 revisions
  1. Example Scenarios

Scenario 1: Promotion Tag Detection

Example 1:

  • Objective: Verify the presence and placement of promotional tags (e.g., "BUY1 GET1") near specific icons.
  • Image Example: Image2
Input Command
await ai('Verify the restaurant having BUY1 GET1 near Red color heart icon');
StarkVision Output when the icon is not Red color
dbug StarkVision Checking element visibility for locator BUY1 GET1 near Red color heart icon
info StarkVision Element Visible check response {
info StarkVision     "conditionSatisfied": false,
info StarkVision     "explanation": "While there is a 'BUY1 GET1' offer visible in the image on the Mamagoto restaurant listing, it is not near a red heart icon. The heart icons shown in the image are outlined in white/gray color, not red. Therefore, the specific condition of 'BUY1 GET1 near Red color heart icon' is not satisfied."
info StarkVision }
StarkVision Output when the icon is Red color
dbug StarkVision Checking element visibility for locator BUY1 GET1 near Red color heart icon
info StarkVision Element Visible check response {
info StarkVision     "conditionSatisfied": true,
info StarkVision     "explanation": "Yes, I can see 'BUY1 GET1' text clearly visible near a heart icon in the second restaurant listing (Mamagoto). The text is fully visible and not overlapped with any other elements, appearing as a promotional offer tag on the restaurant's image thumbnail."
info StarkVision }
Explanation
  • Condition Not Satisfied: In this case, StarkVision correctly identifies that the "BUY1 GET1" promotion is visible but not near a red heart icon.
  • Condition Satisfied: Alternatively, StarkVision confirms when the "BUY1 GET1" is near the expected icon as specified.

Example 2:

  • Objective: Click on the 4rd restaurant with Red color heart icon.
  • Image Example: Image2
Input Command
await ai('Click on the 4rd restaurant with Red color heart icon');
StarkVision Output
StarkVision Checking element visibility for locator 4rd restaurant with Red color heart icon
info StarkVision Element Visible check response {
info StarkVision     "conditionSastified": false,
info StarkVision     "explanation": "The image only shows 3 restaurants (Beijing Bites, Mamagoto, and Mainland China) with heart icons. The 4th restaurant appears to be partially cut off at the bottom of the screen and its heart icon is not fully visible."
info StarkVision }

Example 3:

  • Objective: Click on the 3rd restaurant with Red color heart icon.
  • Image Example: image3
Input Command
await ai('Click on the 3rd restaurant with Red color heart icon');
StarkVision Output
info StarkVision Element Visible check response {
info StarkVision     "conditionSastified": true,
info StarkVision     "explanation": "Yes, there is a restaurant 'Mainland China' showing '50% OFF UPTO ₹100' offer that appears below the restaurant 'Mamagoto' which has a 'BUY1 GET1' offer. The 50% OFF tag is completely visible in the image and not overlapped with any other element."
info StarkVision }

Example 4:

  • Objective: select the restaurant having 50% OFF Upto ₹100 at the bottom
  • Image Example: image4
Input Command
await ai('select the restaurant having 50% OFF Upto ₹100 at the bottom');
StarkVision Output
dbug StarkVision Checking element visibility for locator restaurant having 50% OFF Upto ₹100 at the bottom
info StarkVision Element Visible check response {
info StarkVision     "conditionSastified": true,
info StarkVision     "explanation": "Yes, there is a restaurant 'Mainland China' shown at the bottom portion of the image that has a '50% OFF UPTO ₹100' offer tag clearly visible on its listing card. The offer is completely visible and not overlapped with any other elements."
info StarkVision }

Example 5:

  • Objective: Select the Plus icon near Chilli Garlic
  • Image Example: image6
Input Command
await ai('Click on Plus icon near Chilli Garlic'); // There are so many Plus icon in this screen and proximity works well.
StarkVision Output
info StarkVision Element Visible check response {
info StarkVision     "conditionSastified": true,
info StarkVision     "explanation": "Yes, there is a clearly visible plus (+) icon near the 'Chilli Garlic' item in the 'COMPLETE YOUR MEAL' section. The plus icon appears in the top right corner of the Chilli Garlic dish thumbnail and is fully visible, not overlapped by any other elements."
info StarkVision }