@skrillex1224/playwright-toolkit 2.1.234 → 2.1.236
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 +7 -8
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +10 -11
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +10 -11
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -209,16 +209,13 @@ var ActorInfo = {
|
|
|
209
209
|
erine: createActorInfo({
|
|
210
210
|
key: "erine",
|
|
211
211
|
name: "\u6587\u5FC3\u4E00\u8A00",
|
|
212
|
-
domain: "
|
|
212
|
+
domain: "wenxin.baidu.com",
|
|
213
213
|
path: "/",
|
|
214
|
+
device: Device.Mobile,
|
|
214
215
|
share: {
|
|
215
|
-
mode: "
|
|
216
|
-
prefix: "
|
|
217
|
-
xurl: [
|
|
218
|
-
"/eb/share/key/gen",
|
|
219
|
-
"data",
|
|
220
|
-
"key"
|
|
221
|
-
]
|
|
216
|
+
mode: "dom",
|
|
217
|
+
prefix: "",
|
|
218
|
+
xurl: []
|
|
222
219
|
}
|
|
223
220
|
}),
|
|
224
221
|
wenxin: createActorInfo({
|
|
@@ -256,6 +253,7 @@ var ActorInfo = {
|
|
|
256
253
|
name: "\u5143\u5B9D",
|
|
257
254
|
domain: "yuanbao.tencent.com",
|
|
258
255
|
path: "/chat/",
|
|
256
|
+
device: Device.Mobile,
|
|
259
257
|
share: {
|
|
260
258
|
mode: "response",
|
|
261
259
|
prefix: "https://yb.tencent.com/s/",
|
|
@@ -270,6 +268,7 @@ var ActorInfo = {
|
|
|
270
268
|
name: "Kimi",
|
|
271
269
|
domain: "www.kimi.com",
|
|
272
270
|
path: "/",
|
|
271
|
+
device: Device.Mobile,
|
|
273
272
|
share: {
|
|
274
273
|
mode: "response",
|
|
275
274
|
prefix: "https://www.kimi.com/share/",
|
|
@@ -2825,14 +2824,14 @@ var Humanize = {
|
|
|
2825
2824
|
* @param {import('playwright').Page} page
|
|
2826
2825
|
* @param {string|import('playwright').ElementHandle} target - CSS 选择器或元素句柄
|
|
2827
2826
|
* @param {Object} [options]
|
|
2828
|
-
* @param {number} [options.maxSteps=
|
|
2827
|
+
* @param {number} [options.maxSteps=20] - 最大滚动步数
|
|
2829
2828
|
* @param {number} [options.minStep=260] - 单次滚动最小步长
|
|
2830
2829
|
* @param {number} [options.maxStep=800] - 单次滚动最大步长
|
|
2831
2830
|
* @param {number} [options.maxDurationMs] - 最长耗时上限 (默认随 maxSteps 估算)
|
|
2832
2831
|
*/
|
|
2833
2832
|
async humanScroll(page, target, options = {}) {
|
|
2834
2833
|
const {
|
|
2835
|
-
maxSteps =
|
|
2834
|
+
maxSteps = 20,
|
|
2836
2835
|
minStep = 260,
|
|
2837
2836
|
maxStep = 800,
|
|
2838
2837
|
maxDurationMs = maxSteps * 220 + 800
|
|
@@ -3753,7 +3752,7 @@ var MobileHumanize = {
|
|
|
3753
3752
|
},
|
|
3754
3753
|
async humanScroll(page, target, options = {}) {
|
|
3755
3754
|
const {
|
|
3756
|
-
maxSteps =
|
|
3755
|
+
maxSteps = 20,
|
|
3757
3756
|
minStep = 180,
|
|
3758
3757
|
maxStep = 520,
|
|
3759
3758
|
maxDurationMs = maxSteps * 280 + 1200,
|