mirrored 11 minutes ago
0
Jason Leexiaochuan's multiapp examples 62fd8fe
{
  "id": "cabb3bae-cccb-41bd-9f5d-0f3a9fecd825",
  "snapshot": "chrome",
  "instruction": "Browse spider-man toys for kids and sort by lowest price.",
  "source": "online_tasks",
  "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.kohls.com/"
        ]
      }
    },
    {
      "type": "activate_window",
      "parameters": {
        "window_name": "Google Chrome"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "chrome"
  ],
  "evaluator": {
      "func": "is_expected_url_pattern_match",
      "result": {
        "type": "active_url_from_accessTree",
        "goto_prefix": "https://www."
      },
      "expected": {
        "type": "rule",
        "rules": {
          "expected": [
            "AgeAppropriate:Kids",
            "search=spider[-%20]?man%20toys",
            "S=4"
          ]
        }
      }
    }
}