70 lines
1.3 KiB
JSON
70 lines
1.3 KiB
JSON
{
|
|
"id": "0d8b7de3-e8de-4d86-b9fd-dd2dce58a217",
|
|
"snapshot": "chrome",
|
|
"instruction": "Browse the natural products database.",
|
|
"source": "Mind2Web",
|
|
"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://drugs.com"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Google Chrome"
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; import time; pyautogui.hotkey('alt', 'f10'); time.sleep(0.5);"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"chrome"
|
|
],
|
|
"evaluator": {
|
|
"func": "is_expected_active_tab",
|
|
"result": {
|
|
"type": "active_url_from_accessTree",
|
|
"goto_prefix": "https://www."
|
|
},
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": {
|
|
"type": "url",
|
|
"url": "https://www.drugs.com/npc/"
|
|
}
|
|
}
|
|
}
|
|
}
|