@skrillex1224/playwright-toolkit 2.1.226 → 2.1.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +623 -93
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +623 -93
- package/dist/index.js.map +4 -4
- package/index.d.ts +39 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,10 +102,12 @@ await Actor.exit();
|
|
|
102
102
|
| `Humanize` | `initializeCursor(page)` | 初始化 Cursor (必须先调用) |
|
|
103
103
|
| `Humanize` | `jitterMs(base, jitterPercent?)` | 生成带抖动的毫秒数 (同步,返回 number) |
|
|
104
104
|
| `Humanize` | `humanType(page, selector, text, options?)` | 人类化输入 (baseDelay=180ms ±40%) |
|
|
105
|
+
| `Humanize` | `humanPress(page, target?, key, options?)` | 人类化按键,支持当前焦点或先聚焦目标后按键 |
|
|
105
106
|
| `Humanize` | `humanClick(page, selector, options?)` | 人类化点击 (reactionDelay=250ms ±40%) |
|
|
106
107
|
| `Humanize` | `warmUpBrowsing(page, baseDuration?)` | 页面预热 (3500ms ±40%) |
|
|
107
108
|
| `Humanize` | `simulateGaze(page, baseDurationMs?)` | 模拟注视 (2500ms ±40%) |
|
|
108
109
|
| `Humanize` | `randomSleep(baseMs, jitterPercent?)` | 随机延迟 (±30% 抖动) |
|
|
110
|
+
| `Humanize` | `M.click/focus/fill/type/clickPoint(...)` | Machine 机械化操作;用于必须保持非拟人化 click/focus/fill/type 的兼容路径 |
|
|
109
111
|
| `Captcha` | `useCaptchaMonitor(page, options)` | 验证码监控 |
|
|
110
112
|
|
|
111
113
|
---
|