Update on Chrome examples; Refactor on logic of controlling
This commit is contained in:
@@ -3,16 +3,64 @@
|
||||
"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": [],
|
||||
"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": "",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user