Skip to content

Commit 8a35044

Browse files
author
youtianzhang
committed
添加picv2
1 parent 3d6173c commit 8a35044

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ yarn-debug.log*
77
yarn-error.log*
88
pnpm-debug.log*
99
lerna-debug.log*
10+
/upload_images
1011

1112
# Diagnostic reports (https://nodejs.org/api/report.html)
1213
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

browser_utils/page_controller.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ async def _execute_chat_clear(self, clear_chat_button_locator, confirm_button_lo
432432
continue
433433
else:
434434
raise
435+
finally:
436+
435437

436438
await self._check_disconnect(check_client_disconnected, f"清空聊天 - 消失检查尝试 {attempt_disappear + 1} 后")
437439

@@ -494,11 +496,6 @@ async def submit_prompt(self, prompt: str,image_list: List, check_client_disconn
494496
await file_chooser.set_files(image_list)
495497
print(f"已将 '{image_list}' 设置到文件选择器。")
496498

497-
498-
499-
# 如果页面还有独立的“确认上传”按钮,你需要点击它
500-
# 比如: await page.locator("#confirmUploadButton").click()
501-
502499
except Exception as e:
503500
print(f"在上传文件时发生错误: {e}")
504501

0 commit comments

Comments
 (0)