-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,019 additions
and
107 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
playwright-demo/midscene_run/cache/online-order-zh.spec.ts(ai online order).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"pkgName": "playwright-demo", | ||
"pkgVersion": "0.0.1", | ||
"cacheId": "online-order-zh.spec.ts(ai online order)", | ||
"aiTasks": [ | ||
{ | ||
"prompt": "点击左上角语言切换按钮(英文、中文),在弹出的下拉列表中点击中文", | ||
"tasks": [ | ||
{ | ||
"type": "plan", | ||
"pageContext": { | ||
"url": "https://heyteavivocity.meuu.online/home", | ||
"size": { | ||
"width": 400, | ||
"height": 905, | ||
"dpr": 1 | ||
} | ||
}, | ||
"prompt": "点击左上角语言切换按钮(英文、中文),在弹出的下拉列表中点击中文", | ||
"response": { | ||
"plans": [ | ||
{ | ||
"thought": "找到左上角的语言切换按钮", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "左上角的语言切换按钮,显示为'English'" | ||
}, | ||
"quickAnswer": { | ||
"reason": "找到元素1:它位于页面左上角,是一个文本节点,内容为'English'", | ||
"text": "English", | ||
"id": "ca756f91d9" | ||
} | ||
}, | ||
{ | ||
"thought": "点击语言切换按钮", | ||
"type": "Tap", | ||
"param": null | ||
}, | ||
{ | ||
"thought": "找到下拉列表中的'中文'选项", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "下拉列表中的'中文'选项" | ||
}, | ||
"quickAnswer": null | ||
}, | ||
{ | ||
"thought": "点击'中文'选项", | ||
"type": "Tap", | ||
"param": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
194 changes: 194 additions & 0 deletions
194
...-demo/midscene_run/cache/todo-mvc-en.spec.ts(ai todo - English Prompt - should fail).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"pkgName": "playwright-demo", | ||
"pkgVersion": "0.0.1", | ||
"cacheId": "todo-mvc-en.spec.ts(ai todo - English Prompt - should fail)", | ||
"aiTasks": [ | ||
{ | ||
"prompt": "Input 'Study JS today' in the task box input and press the Enter key", | ||
"tasks": [ | ||
{ | ||
"type": "plan", | ||
"pageContext": { | ||
"url": "https://todomvc.com/examples/react/dist/", | ||
"size": { | ||
"width": 1280, | ||
"height": 720, | ||
"dpr": 1 | ||
} | ||
}, | ||
"prompt": "Input 'Study JS today' in the task box input and press the Enter key", | ||
"response": { | ||
"plans": [ | ||
{ | ||
"thought": "Locate the task input box", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "The input box with placeholder 'What needs to be done?'" | ||
}, | ||
"quickAnswer": { | ||
"reason": "Reason for finding element: It is located in the center of the page, is an input type, and according to the screenshot, it has the placeholder 'What needs to be done?'", | ||
"text": "What needs to be done?", | ||
"id": "fbc2d0029b" | ||
} | ||
}, | ||
{ | ||
"thought": "Input 'Study JS today' in the task box", | ||
"type": "Input", | ||
"param": { | ||
"value": "Study JS today" | ||
} | ||
}, | ||
{ | ||
"thought": "Press the Enter key to submit the task", | ||
"type": "KeyboardPress", | ||
"param": { | ||
"value": "Enter" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"prompt": "Input 'Study Rust tomorrow' in the task box input and press the Enter key", | ||
"tasks": [ | ||
{ | ||
"type": "plan", | ||
"pageContext": { | ||
"url": "https://todomvc.com/examples/react/dist/", | ||
"size": { | ||
"width": 1280, | ||
"height": 720, | ||
"dpr": 1 | ||
} | ||
}, | ||
"prompt": "Input 'Study Rust tomorrow' in the task box input and press the Enter key", | ||
"response": { | ||
"plans": [ | ||
{ | ||
"thought": "Locate the task box input field", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "The input field with placeholder 'What needs to be done?'" | ||
}, | ||
"quickAnswer": { | ||
"reason": "Reason for finding element 1: It is located in the center, is an input type, and according to the screenshot, it has the placeholder 'What needs to be done?'", | ||
"text": "What needs to be done?", | ||
"id": "fbc2d0029b" | ||
} | ||
}, | ||
{ | ||
"thought": "Input 'Study Rust tomorrow' in the task box input field", | ||
"type": "Input", | ||
"param": { | ||
"value": "Study Rust tomorrow" | ||
} | ||
}, | ||
{ | ||
"thought": "Press the Enter key to add the task", | ||
"type": "KeyboardPress", | ||
"param": { | ||
"value": "Enter" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"prompt": "Input 'Study AI the day after tomorrow' in the task box input and press the Enter key", | ||
"tasks": [ | ||
{ | ||
"type": "plan", | ||
"pageContext": { | ||
"url": "https://todomvc.com/examples/react/dist/", | ||
"size": { | ||
"width": 1280, | ||
"height": 720, | ||
"dpr": 1 | ||
} | ||
}, | ||
"prompt": "Input 'Study AI the day after tomorrow' in the task box input and press the Enter key", | ||
"response": { | ||
"plans": [ | ||
{ | ||
"thought": "Locate the task input box", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "The input box with placeholder 'What needs to be done?'" | ||
}, | ||
"quickAnswer": { | ||
"reason": "Reason for finding element 1: It is located in the upper center, is an input type, and according to the screenshot, it is the task input box", | ||
"text": "What needs to be done?", | ||
"id": "fbc2d0029b" | ||
} | ||
}, | ||
{ | ||
"thought": "Input the task 'Study AI the day after tomorrow' in the task input box", | ||
"type": "Input", | ||
"param": { | ||
"value": "Study AI the day after tomorrow" | ||
} | ||
}, | ||
{ | ||
"thought": "Press the Enter key to add the task", | ||
"type": "KeyboardPress", | ||
"param": { | ||
"value": "Enter" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"prompt": "Move the mouse to the second item in the task list and click the delete button on the right of the second task", | ||
"tasks": [ | ||
{ | ||
"type": "plan", | ||
"pageContext": { | ||
"url": "https://todomvc.com/examples/react/dist/", | ||
"size": { | ||
"width": 1280, | ||
"height": 720, | ||
"dpr": 1 | ||
} | ||
}, | ||
"prompt": "Move the mouse to the second item in the task list and click the delete button on the right of the second task", | ||
"response": { | ||
"plans": [ | ||
{ | ||
"thought": "Locate the second item in the task list", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "The text 'Study Rust tomorrow'" | ||
}, | ||
"quickAnswer": { | ||
"reason": "Reason for finding element 7: It is located in the middle of the task list, is a text node, and according to the screenshot, it is the second task item", | ||
"text": "Study Rust tomorrow", | ||
"id": "bdc4a34474" | ||
} | ||
}, | ||
{ | ||
"thought": "Locate the delete button on the right of the second task", | ||
"type": "Locate", | ||
"param": { | ||
"prompt": "The delete button on the right of the text 'Study Rust tomorrow'" | ||
}, | ||
"quickAnswer": null | ||
}, | ||
{ | ||
"thought": "Click the delete button", | ||
"type": "Tap", | ||
"param": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.