docs: add yunpan1 captcha handling
- usage.md: 增加验证码弹窗处理步骤,验证码 392718 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,19 @@
|
|||||||
|
|
||||||
使用 Playwright 浏览器完成搜索、查看帖子、回复获取隐藏链接。
|
使用 Playwright 浏览器完成搜索、查看帖子、回复获取隐藏链接。
|
||||||
|
|
||||||
|
## 验证码
|
||||||
|
|
||||||
|
网站有时弹窗要求输入验证码。检测到输入框时填入:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const captchaInput = page.locator('input[placeholder*="验证码"]');
|
||||||
|
if (await captchaInput.isVisible()) {
|
||||||
|
await captchaInput.fill('392718');
|
||||||
|
await page.locator('button:has-text("提交")').click();
|
||||||
|
await page.waitForTimeout(2000);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## 前置检查
|
## 前置检查
|
||||||
|
|
||||||
浏览器可能已登录 yunpan1,先检查登录状态:
|
浏览器可能已登录 yunpan1,先检查登录状态:
|
||||||
|
|||||||
Reference in New Issue
Block a user