add new chrome examples and change port from 9222 to 1337

This commit is contained in:
Jason Lee
2024-02-22 16:31:25 +08:00
parent e31e1dacde
commit e2745d8b1b
8 changed files with 121 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=9222"
"--remote-debugging-port=1337"
]
}
},

View File

@@ -23,7 +23,7 @@
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=9222"
"--remote-debugging-port=1337"
]
}
},

View File

@@ -27,7 +27,7 @@
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=9222"
"--remote-debugging-port=1337"
]
}
},

View File

@@ -9,7 +9,7 @@
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=9222"
"--remote-debugging-port=1337"
]
}
},

View File

@@ -3,16 +3,41 @@
"snapshot": "chrome",
"instruction": "Please help me set Chrome to delete my browsing history automatically every time I close the browser.",
"source": "https://www.youtube.com/watch?v=v0kxqB7Xa6I",
"config": [],
"config": [
{
"type": "launch",
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=1337"
]
}
},
{
"type": "launch",
"parameters": {
"command": [
"socat",
"tcp-listen:9222,fork",
"tcp:localhost:1337"
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func": "",
"func": "exact_match",
"result": {
"type": "data_delete_automacally"
},
"expected": {
"type": "rule",
"rules": {
"expected": "Crashed"
}
}
}
}

View File

@@ -0,0 +1,45 @@
{
"id": "a96b564e-dbe9-42c3-9ccf-b4498073438a",
"snapshot": "chrome",
"instruction": "Find discussions of community and open one with most replies.",
"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"
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func":"is_expected_active_tab",
"result": {
"type": "active_tab_info"
},
"expected":{
"type": "rule",
"rules":{
"type": "url",
"url": "https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263"
}
}
}
}

View File

@@ -9,7 +9,7 @@
"parameters": {
"command": [
"google-chrome",
"--remote-debugging-port=9222"
"--remote-debugging-port=1337"
]
}
},

View File

@@ -0,0 +1,44 @@
{
"id": "f3b19d1e-2d48-44e9-b4e1-defcae1a0197",
"snapshot": "chrome",
"instruction": "Find help page about buying tickets.",
"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"
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"chrome"
],
"evaluator": {
"func":"is_expected_url_pattern_match",
"result": {
"type": "active_tab_info"
},
"expected":{
"type": "rule",
"rules":{
"expected": "https://seatgeek\\.com/help/articles/\\d+-Buying-Tickets"
}
}
}
}