@skrillex1224/playwright-toolkit 2.1.234 → 2.1.235
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/dist/browser.js +3 -1
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -236,8 +236,9 @@ var ActorInfo = {
|
|
|
236
236
|
erine: createActorInfo({
|
|
237
237
|
key: "erine",
|
|
238
238
|
name: "\u6587\u5FC3\u4E00\u8A00",
|
|
239
|
-
domain: "
|
|
239
|
+
domain: "wenxin.baidu.com",
|
|
240
240
|
path: "/",
|
|
241
|
+
device: Device.Mobile,
|
|
241
242
|
share: {
|
|
242
243
|
mode: "response",
|
|
243
244
|
prefix: "https://yiyan.baidu.com/share/",
|
|
@@ -283,6 +284,7 @@ var ActorInfo = {
|
|
|
283
284
|
name: "\u5143\u5B9D",
|
|
284
285
|
domain: "yuanbao.tencent.com",
|
|
285
286
|
path: "/chat/",
|
|
287
|
+
device: Device.Mobile,
|
|
286
288
|
share: {
|
|
287
289
|
mode: "response",
|
|
288
290
|
prefix: "https://yb.tencent.com/s/",
|
|
@@ -2853,14 +2855,14 @@ var Humanize = {
|
|
|
2853
2855
|
* @param {import('playwright').Page} page
|
|
2854
2856
|
* @param {string|import('playwright').ElementHandle} target - CSS 选择器或元素句柄
|
|
2855
2857
|
* @param {Object} [options]
|
|
2856
|
-
* @param {number} [options.maxSteps=
|
|
2858
|
+
* @param {number} [options.maxSteps=20] - 最大滚动步数
|
|
2857
2859
|
* @param {number} [options.minStep=260] - 单次滚动最小步长
|
|
2858
2860
|
* @param {number} [options.maxStep=800] - 单次滚动最大步长
|
|
2859
2861
|
* @param {number} [options.maxDurationMs] - 最长耗时上限 (默认随 maxSteps 估算)
|
|
2860
2862
|
*/
|
|
2861
2863
|
async humanScroll(page, target, options = {}) {
|
|
2862
2864
|
const {
|
|
2863
|
-
maxSteps =
|
|
2865
|
+
maxSteps = 20,
|
|
2864
2866
|
minStep = 260,
|
|
2865
2867
|
maxStep = 800,
|
|
2866
2868
|
maxDurationMs = maxSteps * 220 + 800
|
|
@@ -3781,7 +3783,7 @@ var MobileHumanize = {
|
|
|
3781
3783
|
},
|
|
3782
3784
|
async humanScroll(page, target, options = {}) {
|
|
3783
3785
|
const {
|
|
3784
|
-
maxSteps =
|
|
3786
|
+
maxSteps = 20,
|
|
3785
3787
|
minStep = 180,
|
|
3786
3788
|
maxStep = 520,
|
|
3787
3789
|
maxDurationMs = maxSteps * 280 + 1200,
|