Fix some json typos from Chrome
This commit is contained in:
@@ -20,7 +20,6 @@ from .chrome import (
|
|||||||
get_find_unpacked_extension_path,
|
get_find_unpacked_extension_path,
|
||||||
get_data_delete_automacally,
|
get_data_delete_automacally,
|
||||||
get_active_tab_html_parse,
|
get_active_tab_html_parse,
|
||||||
get_active_tab_html_parse_accTree,
|
|
||||||
get_active_tab_url_parse,
|
get_active_tab_url_parse,
|
||||||
get_gotoRecreationPage_and_get_html_content,
|
get_gotoRecreationPage_and_get_html_content,
|
||||||
get_url_dashPart,
|
get_url_dashPart,
|
||||||
|
|||||||
@@ -1,62 +1,63 @@
|
|||||||
{
|
{
|
||||||
"id": "9f935cce-0a9f-435f-8007-817732bfc0a5",
|
"id": "9f935cce-0a9f-435f-8007-817732bfc0a5",
|
||||||
"snapshot": "chrome",
|
"snapshot": "chrome",
|
||||||
"instruction": "Browse list of Civil Division forms.",
|
"instruction": "Browse list of Civil Division forms.",
|
||||||
"source": "online_tasks",
|
"source": "online_tasks",
|
||||||
"config": [
|
"config": [
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"google-chrome",
|
"google-chrome",
|
||||||
"--remote-debugging-port=1337"
|
"--remote-debugging-port=1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"socat",
|
"socat",
|
||||||
"tcp-listen:9222,fork",
|
"tcp-listen:9222,fork",
|
||||||
"tcp:localhost:1337"
|
"tcp:localhost:1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chrome_open_tabs",
|
"type": "chrome_open_tabs",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"urls_to_open": [
|
"urls_to_open": [
|
||||||
"https://www.justice.gov/"
|
"https://www.justice.gov/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "activate_window",
|
"type": "activate_window",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"window_name": "Google Chrome"
|
"window_name": "Google Chrome"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"trajectory": "trajectories/",
|
||||||
|
"related_apps": [
|
||||||
|
"chrome"
|
||||||
|
],
|
||||||
|
"evaluator": {
|
||||||
|
"func": "is_expected_url_pattern_match",
|
||||||
|
"result": {
|
||||||
|
"type": "active_tab_info",
|
||||||
|
"selectors": [
|
||||||
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
|
],
|
||||||
|
"goto_prefix": "https://www."
|
||||||
|
},
|
||||||
|
"expected": {
|
||||||
|
"type": "rule",
|
||||||
|
"rules": {
|
||||||
|
"expected": [
|
||||||
|
"forms\\?title=&field_component_target_id=431"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"trajectory": "trajectories/",
|
|
||||||
"related_apps": [
|
|
||||||
"chrome"
|
|
||||||
],
|
|
||||||
"evaluator": {
|
|
||||||
"func":"is_expected_url_pattern_match",
|
|
||||||
"result": {
|
|
||||||
"type": "active_tab_info",
|
|
||||||
"selectors":[
|
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
|
||||||
],
|
|
||||||
"goto_prefix": "https://www."
|
|
||||||
},
|
|
||||||
"expected":{
|
|
||||||
"type": "rule",
|
|
||||||
"rules":{
|
|
||||||
"expected": ["forms\\?title=&field_component_target_id=431"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,65 +1,64 @@
|
|||||||
{
|
{
|
||||||
"id": " b070486d-e161-459b-aa2b-ef442d973b92",
|
"id": " b070486d-e161-459b-aa2b-ef442d973b92",
|
||||||
"snapshot": "chrome",
|
"snapshot": "chrome",
|
||||||
"instruction": "Show side effects of Tamiflu.",
|
"instruction": "Show side effects of Tamiflu.",
|
||||||
"source": "online_tasks",
|
"source": "online_tasks",
|
||||||
"config": [
|
"config": [
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"google-chrome",
|
"google-chrome",
|
||||||
"--remote-debugging-port=1337"
|
"--remote-debugging-port=1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"socat",
|
"socat",
|
||||||
"tcp-listen:9222,fork",
|
"tcp-listen:9222,fork",
|
||||||
"tcp:localhost:1337"
|
"tcp:localhost:1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chrome_open_tabs",
|
"type": "chrome_open_tabs",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"urls_to_open": [
|
"urls_to_open": [
|
||||||
"https://www.drugs.com/"
|
"https://www.drugs.com/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "activate_window",
|
"type": "activate_window",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"window_name": "Google Chrome"
|
"window_name": "Google Chrome"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"trajectory": "trajectories/",
|
||||||
|
"related_apps": [
|
||||||
|
"chrome"
|
||||||
|
],
|
||||||
|
"evaluator": {
|
||||||
|
"func": "exact_match",
|
||||||
|
"result": {
|
||||||
|
"type": "url_dashPart",
|
||||||
|
"selectors": [
|
||||||
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
|
],
|
||||||
|
"goto_prefix": "https://www.",
|
||||||
|
"partIndex": -1,
|
||||||
|
"needDeleteId": false,
|
||||||
|
"returnType": "string"
|
||||||
|
},
|
||||||
|
"expected": {
|
||||||
|
"type": "rule",
|
||||||
|
"rules": {
|
||||||
|
"expected": "tamiflu.html#side-effects"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"trajectory": "trajectories/",
|
|
||||||
"related_apps": [
|
|
||||||
"chrome"
|
|
||||||
],
|
|
||||||
"evaluator": {
|
|
||||||
"func":"exact_match",
|
|
||||||
"result": {
|
|
||||||
"type": "url_dashPart",
|
|
||||||
"selectors":[
|
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
|
||||||
],
|
|
||||||
"goto_prefix": "https://www.",
|
|
||||||
"partIndex": -1,
|
|
||||||
"needDeleteId": false,
|
|
||||||
"returnType": "string"
|
|
||||||
},
|
|
||||||
"expected":{
|
|
||||||
"type": "rule",
|
|
||||||
"rules":{
|
|
||||||
"expected": "tamiflu.html#side-effects"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,62 +1,65 @@
|
|||||||
{
|
{
|
||||||
"id": "cabb3bae-cccb-41bd-9f5d-0f3a9fecd825",
|
"id": "cabb3bae-cccb-41bd-9f5d-0f3a9fecd825",
|
||||||
"snapshot": "chrome",
|
"snapshot": "chrome",
|
||||||
"instruction": "Browse spider-man toys for kids and sort by lowest price.",
|
"instruction": "Browse spider-man toys for kids and sort by lowest price.",
|
||||||
"source": "online_tasks",
|
"source": "online_tasks",
|
||||||
"config": [
|
"config": [
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"google-chrome",
|
"google-chrome",
|
||||||
"--remote-debugging-port=1337"
|
"--remote-debugging-port=1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"socat",
|
"socat",
|
||||||
"tcp-listen:9222,fork",
|
"tcp-listen:9222,fork",
|
||||||
"tcp:localhost:1337"
|
"tcp:localhost:1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chrome_open_tabs",
|
"type": "chrome_open_tabs",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"urls_to_open": [
|
"urls_to_open": [
|
||||||
"https://www.kohls.com/"
|
"https://www.kohls.com/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "activate_window",
|
"type": "activate_window",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"window_name": "Google Chrome"
|
"window_name": "Google Chrome"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"trajectory": "trajectories/",
|
|
||||||
"related_apps": [
|
|
||||||
"chrome"
|
|
||||||
],
|
|
||||||
"evaluator": {
|
|
||||||
"func":"is_expected_url_pattern_match",
|
|
||||||
"result": {
|
|
||||||
"type": "active_url_from_accessTree",
|
|
||||||
"selectors":[
|
|
||||||
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
|
||||||
],
|
|
||||||
"goto_prefix": "https://www."
|
|
||||||
},
|
|
||||||
"expected":{
|
|
||||||
"type": "rule",
|
|
||||||
"rules":{
|
|
||||||
"expected": ["AgeAppropriate:Kids", "search=spider-man%20toys", "S=4"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
],
|
||||||
|
"trajectory": "trajectories/",
|
||||||
|
"related_apps": [
|
||||||
|
"chrome"
|
||||||
|
],
|
||||||
|
"evaluator": {
|
||||||
|
"func": "is_expected_url_pattern_match",
|
||||||
|
"result": {
|
||||||
|
"type": "active_url_from_accessTree",
|
||||||
|
"selectors": [
|
||||||
|
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
|
||||||
|
],
|
||||||
|
"goto_prefix": "https://www."
|
||||||
|
},
|
||||||
|
"expected": {
|
||||||
|
"type": "rule",
|
||||||
|
"rules": {
|
||||||
|
"expected": [
|
||||||
|
"AgeAppropriate:Kids",
|
||||||
|
"search=spider-man%20toys",
|
||||||
|
"S=4"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user