mirrored 9 minutes ago
0
TimothyxxxUpdate on Chrome examples; Refactor on logic of controlling 5a93a32
{
  "id": "06fe7178-4491-4589-810f-2e2bc9502122",
  "snapshot": "chrome",
  "instruction": "Can you make my computer bring back the last tab I shut down?",
  "source": "https://www.wikihow.com/Switch-Tabs-in-Chrome",
  "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.lonelyplanet.com",
          "https://www.airbnb.com",
          "https://www.tripadvisor.com"
        ]
      }
    },
    {
      "type": "chrome_close_tabs",
      "parameters": {
        "urls_to_close": [
          "https://www.tripadvisor.com"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "chrome"
  ],
  "evaluator": {
    "func": "is_expected_tabs",
    "result": {
      "type": "open_tabs_info"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "type": "url",
        "urls": [
          "https://www.lonelyplanet.com",
          "https://www.airbnb.com",
          "https://www.tripadvisor.com"
        ]
      }
    }
  }
}