{
  "id": "ecb0df7a-4e8d-4a03-b162-053391d3afaf",
  "snapshot": "excel",
  "instruction": "Enable each cell in the column\"Pass/Fail/Held\" is a drop down list",
  "source": "https://www.youtube.com/shorts/tXOovKn0H68",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.usercontent.google.com/download?id=1e0WA__QPxdOaRGExO9yZQjHLnMAD3ox9&export=download&authuser=0&confirm=t&uuid=206da40e-98f1-4e37-88d3-558e95cc3e96&at=APZUnTXTjDwHIZ6utAsff0P1d_6d:1710924265156",
            "path": "C:\\Users\\chenj\\Order_Id_Mark_Pass_Fail.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\chenj\\Order_Id_Mark_Pass_Fail.xlsx"
      }
    }
  ],
  "trajectory": "trajectories/ecb0df7a-4e8d-4a03-b162-053391d3afaf",
  "related_apps": [
    "excel"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Order_Id_Mark_Pass_Fail - Excel",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5);"
          ]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      }
    ],
    "func": "compare_table",
    "options": {
      "rules": [
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0"
        },
        {
          "type": "data_validation",
          "sheet_idx": 0,
          "dv_props": [
            {
              "ranges": {
                "method": "spreadsheet_range",
                "ref": [
                  "D2:D29",
                  "D2:D1048576"
                ]
              },
              "type": {
                "method": "eq",
                "ref": "list"
              },
              "formula1": {
                "method": "str_set_eq",
                "ref": [
                  "Pass",
                  "Fail",
                  "Held"
                ]
              }
            }
          ]
        }
      ]
    },
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\chenj\\Order_Id_Mark_Pass_Fail.xlsx",
      "dest": "Order_Id_Mark_Pass_Fail.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://drive.usercontent.google.com/download?id=11iY78aGztKWikebXZY1577Ptlf3ZLs9q&export=download&authuser=0&confirm=t&uuid=bd88dfc8-503b-4777-af17-64e4903908ff&at=APZUnTUy5IFEQejlUm9-kHpMfg00:1710926523841",
      "dest": "Order_Id_Mark_Pass_Fail_gold.xlsx"
    }
  }
}