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

@@ -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"
}
}
}
}