@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/index.js CHANGED
@@ -209,8 +209,9 @@ var ActorInfo = {
209
209
  erine: createActorInfo({
210
210
  key: "erine",
211
211
  name: "\u6587\u5FC3\u4E00\u8A00",
212
- domain: "yiyan.baidu.com",
212
+ domain: "wenxin.baidu.com",
213
213
  path: "/",
214
+ device: Device.Mobile,
214
215
  share: {
215
216
  mode: "response",
216
217
  prefix: "https://yiyan.baidu.com/share/",
@@ -256,6 +257,7 @@ var ActorInfo = {
256
257
  name: "\u5143\u5B9D",
257
258
  domain: "yuanbao.tencent.com",
258
259
  path: "/chat/",
260
+ device: Device.Mobile,
259
261
  share: {
260
262
  mode: "response",
261
263
  prefix: "https://yb.tencent.com/s/",
@@ -2825,14 +2827,14 @@ var Humanize = {
2825
2827
  * @param {import('playwright').Page} page
2826
2828
  * @param {string|import('playwright').ElementHandle} target - CSS 选择器或元素句柄
2827
2829
  * @param {Object} [options]
2828
- * @param {number} [options.maxSteps=14] - 最大滚动步数
2830
+ * @param {number} [options.maxSteps=20] - 最大滚动步数
2829
2831
  * @param {number} [options.minStep=260] - 单次滚动最小步长
2830
2832
  * @param {number} [options.maxStep=800] - 单次滚动最大步长
2831
2833
  * @param {number} [options.maxDurationMs] - 最长耗时上限 (默认随 maxSteps 估算)
2832
2834
  */
2833
2835
  async humanScroll(page, target, options = {}) {
2834
2836
  const {
2835
- maxSteps = 14,
2837
+ maxSteps = 20,
2836
2838
  minStep = 260,
2837
2839
  maxStep = 800,
2838
2840
  maxDurationMs = maxSteps * 220 + 800
@@ -3753,7 +3755,7 @@ var MobileHumanize = {
3753
3755
  },
3754
3756
  async humanScroll(page, target, options = {}) {
3755
3757
  const {
3756
- maxSteps = 12,
3758
+ maxSteps = 20,
3757
3759
  minStep = 180,
3758
3760
  maxStep = 520,
3759
3761
  maxDurationMs = maxSteps * 280 + 1200,