mirrored 10 minutes ago
0
Yuan Mengqifix chrome tasks (#230) * fix chrome * fix: fix proxy setup * feat&fix: add proxy support in setup and remove hardcoded proxy from example * fix tasks * fix chrome finished * fix * clean chrome_fix code * clean chrome_fix code --------- Co-authored-by: adlsdztony <zzl0712@connect.hku.hk>b2fb8b4
{
  "id": "fc6d8143-9452-4171-9459-7f515143419a",
  "snapshot": "chrome",
  "instruction": "Find the status of tomorrow flights from New York airports to Columbus in Ohio.",
  "source": "test_task_0",
  "config": [
    {
      "type": "launch",
      "parameters": {
        "command": [
          "google-chrome",
          "--remote-debugging-port=1337"
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "socat",
          "tcp-listen:9222,fork",
          "tcp:localhost:1337"
        ]
      }
    },
    {
      "type": "chrome_open_tabs",
      "parameters": {
        "urls_to_open": [
          "https://www.delta.com/"
        ]
      }
    },
    {
      "type": "activate_window",
      "parameters": {
        "window_name": "Google Chrome"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "chrome"
  ],
  "evaluator": {
    "func": "check_direct_json_object",
    "result": {
      "type": "active_tab_html_parse",
      "goto_prefix": "https://www.",
      "category": "class",
      "class_singleObject": {
        "mach-flight-context-info__wrapper--date": "time"
      },
      "class_multiObject_child": {
        "mach-flight-context-info__wrapper__info--separator": {
          "0": "start",
          "1": "end"
        }
      }
    },
    "expected": {
      "type": "rule_relativeTime",
      "rules": {
        "relativeTime": {
          "from": "tomorrow"
        },
        "expected": {
          "start": "NYC",
          "end": "CMH",
          "time": "{DoW}, {Month} {Day0D}, {Year}"
        }
      }
    }
  },
  "proxy": true
}