87 lines
2.3 KiB
JSON
87 lines
2.3 KiB
JSON
{
|
|
"id": "1704f00f-79e6-43a7-961b-cedd3724d5fd",
|
|
"snapshot": "chrome",
|
|
"instruction": "Find a large car with lowest price from next Monday to next Friday in Zurich.",
|
|
"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.rentalcars.com/"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Google Chrome"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"chrome"
|
|
],
|
|
"evaluator": {
|
|
"func":["check_direct_json_object", "check_direct_json_object"],
|
|
"result": [{
|
|
"type": "active_tab_url_parse",
|
|
"goto_prefix": "https://www.",
|
|
"parse_keys": ["locationName", "dropLocationName", "filterCriteria_carCategory", "filterCriteria_sortBy"]
|
|
},
|
|
{
|
|
"type": "active_tab_html_parse",
|
|
"goto_prefix": "https://www.",
|
|
"category": "xpath",
|
|
"xpathObject":{
|
|
"/html/body/main/div/div/div/section/div/div/div/div[1]/div[1]/p": "from",
|
|
"/html/body/main/div/div/div/section/div/div/div/div[1]/div[3]/p": "to"
|
|
}
|
|
}],
|
|
"expected":[{
|
|
"type": "rule",
|
|
"rules":{
|
|
"expected": {
|
|
"locationName": "Zurich Airport",
|
|
"dropLocationName": "Zurich Airport",
|
|
"filterCriteria_carCategory": "large",
|
|
"filterCriteria_sortBy": "PRICE"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "rule_relativeTime",
|
|
"rules":{
|
|
"relativeTime":{
|
|
"from":"next Monday",
|
|
"to":"next Friday"
|
|
},
|
|
"expected": {
|
|
"from": "{DoW}, {DayD} {Month} {Year}, 10:00",
|
|
"to": "{DoW}, {DayD} {Month} {Year}, 10:00"
|
|
}
|
|
}}
|
|
]
|
|
}
|
|
}
|
|
|