Skip to content

Commit fe8f35a

Browse files
committed
chore: update midscene version
1 parent 2caec27 commit fe8f35a

5 files changed

+1019
-107
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"pkgName": "playwright-demo",
3+
"pkgVersion": "0.0.1",
4+
"cacheId": "online-order-zh.spec.ts(ai online order)",
5+
"aiTasks": [
6+
{
7+
"prompt": "点击左上角语言切换按钮(英文、中文),在弹出的下拉列表中点击中文",
8+
"tasks": [
9+
{
10+
"type": "plan",
11+
"pageContext": {
12+
"url": "https://heyteavivocity.meuu.online/home",
13+
"size": {
14+
"width": 400,
15+
"height": 905,
16+
"dpr": 1
17+
}
18+
},
19+
"prompt": "点击左上角语言切换按钮(英文、中文),在弹出的下拉列表中点击中文",
20+
"response": {
21+
"plans": [
22+
{
23+
"thought": "找到左上角的语言切换按钮",
24+
"type": "Locate",
25+
"param": {
26+
"prompt": "左上角的语言切换按钮,显示为'English'"
27+
},
28+
"quickAnswer": {
29+
"reason": "找到元素1:它位于页面左上角,是一个文本节点,内容为'English'",
30+
"text": "English",
31+
"id": "ca756f91d9"
32+
}
33+
},
34+
{
35+
"thought": "点击语言切换按钮",
36+
"type": "Tap",
37+
"param": null
38+
},
39+
{
40+
"thought": "找到下拉列表中的'中文'选项",
41+
"type": "Locate",
42+
"param": {
43+
"prompt": "下拉列表中的'中文'选项"
44+
},
45+
"quickAnswer": null
46+
},
47+
{
48+
"thought": "点击'中文'选项",
49+
"type": "Tap",
50+
"param": null
51+
}
52+
]
53+
}
54+
}
55+
]
56+
}
57+
]
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"pkgName": "playwright-demo",
3+
"pkgVersion": "0.0.1",
4+
"cacheId": "todo-mvc-en.spec.ts(ai todo - English Prompt - should fail)",
5+
"aiTasks": [
6+
{
7+
"prompt": "Input 'Study JS today' in the task box input and press the Enter key",
8+
"tasks": [
9+
{
10+
"type": "plan",
11+
"pageContext": {
12+
"url": "https://todomvc.com/examples/react/dist/",
13+
"size": {
14+
"width": 1280,
15+
"height": 720,
16+
"dpr": 1
17+
}
18+
},
19+
"prompt": "Input 'Study JS today' in the task box input and press the Enter key",
20+
"response": {
21+
"plans": [
22+
{
23+
"thought": "Locate the task input box",
24+
"type": "Locate",
25+
"param": {
26+
"prompt": "The input box with placeholder 'What needs to be done?'"
27+
},
28+
"quickAnswer": {
29+
"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?'",
30+
"text": "What needs to be done?",
31+
"id": "fbc2d0029b"
32+
}
33+
},
34+
{
35+
"thought": "Input 'Study JS today' in the task box",
36+
"type": "Input",
37+
"param": {
38+
"value": "Study JS today"
39+
}
40+
},
41+
{
42+
"thought": "Press the Enter key to submit the task",
43+
"type": "KeyboardPress",
44+
"param": {
45+
"value": "Enter"
46+
}
47+
}
48+
]
49+
}
50+
}
51+
]
52+
},
53+
{
54+
"prompt": "Input 'Study Rust tomorrow' in the task box input and press the Enter key",
55+
"tasks": [
56+
{
57+
"type": "plan",
58+
"pageContext": {
59+
"url": "https://todomvc.com/examples/react/dist/",
60+
"size": {
61+
"width": 1280,
62+
"height": 720,
63+
"dpr": 1
64+
}
65+
},
66+
"prompt": "Input 'Study Rust tomorrow' in the task box input and press the Enter key",
67+
"response": {
68+
"plans": [
69+
{
70+
"thought": "Locate the task box input field",
71+
"type": "Locate",
72+
"param": {
73+
"prompt": "The input field with placeholder 'What needs to be done?'"
74+
},
75+
"quickAnswer": {
76+
"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?'",
77+
"text": "What needs to be done?",
78+
"id": "fbc2d0029b"
79+
}
80+
},
81+
{
82+
"thought": "Input 'Study Rust tomorrow' in the task box input field",
83+
"type": "Input",
84+
"param": {
85+
"value": "Study Rust tomorrow"
86+
}
87+
},
88+
{
89+
"thought": "Press the Enter key to add the task",
90+
"type": "KeyboardPress",
91+
"param": {
92+
"value": "Enter"
93+
}
94+
}
95+
]
96+
}
97+
}
98+
]
99+
},
100+
{
101+
"prompt": "Input 'Study AI the day after tomorrow' in the task box input and press the Enter key",
102+
"tasks": [
103+
{
104+
"type": "plan",
105+
"pageContext": {
106+
"url": "https://todomvc.com/examples/react/dist/",
107+
"size": {
108+
"width": 1280,
109+
"height": 720,
110+
"dpr": 1
111+
}
112+
},
113+
"prompt": "Input 'Study AI the day after tomorrow' in the task box input and press the Enter key",
114+
"response": {
115+
"plans": [
116+
{
117+
"thought": "Locate the task input box",
118+
"type": "Locate",
119+
"param": {
120+
"prompt": "The input box with placeholder 'What needs to be done?'"
121+
},
122+
"quickAnswer": {
123+
"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",
124+
"text": "What needs to be done?",
125+
"id": "fbc2d0029b"
126+
}
127+
},
128+
{
129+
"thought": "Input the task 'Study AI the day after tomorrow' in the task input box",
130+
"type": "Input",
131+
"param": {
132+
"value": "Study AI the day after tomorrow"
133+
}
134+
},
135+
{
136+
"thought": "Press the Enter key to add the task",
137+
"type": "KeyboardPress",
138+
"param": {
139+
"value": "Enter"
140+
}
141+
}
142+
]
143+
}
144+
}
145+
]
146+
},
147+
{
148+
"prompt": "Move the mouse to the second item in the task list and click the delete button on the right of the second task",
149+
"tasks": [
150+
{
151+
"type": "plan",
152+
"pageContext": {
153+
"url": "https://todomvc.com/examples/react/dist/",
154+
"size": {
155+
"width": 1280,
156+
"height": 720,
157+
"dpr": 1
158+
}
159+
},
160+
"prompt": "Move the mouse to the second item in the task list and click the delete button on the right of the second task",
161+
"response": {
162+
"plans": [
163+
{
164+
"thought": "Locate the second item in the task list",
165+
"type": "Locate",
166+
"param": {
167+
"prompt": "The text 'Study Rust tomorrow'"
168+
},
169+
"quickAnswer": {
170+
"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",
171+
"text": "Study Rust tomorrow",
172+
"id": "bdc4a34474"
173+
}
174+
},
175+
{
176+
"thought": "Locate the delete button on the right of the second task",
177+
"type": "Locate",
178+
"param": {
179+
"prompt": "The delete button on the right of the text 'Study Rust tomorrow'"
180+
},
181+
"quickAnswer": null
182+
},
183+
{
184+
"thought": "Click the delete button",
185+
"type": "Tap",
186+
"param": null
187+
}
188+
]
189+
}
190+
}
191+
]
192+
}
193+
]
194+
}

0 commit comments

Comments
 (0)