@skrillex1224/playwright-toolkit 2.1.208 → 2.1.210

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 CHANGED
@@ -221,8 +221,7 @@ const image2 = await Share.captureScreen(page, { restore: 'width-only' });
221
221
  // 显式配置 watermarkify:全页淡水印 + 底部一行细条
222
222
  const image3 = await Share.captureScreen(page, {
223
223
  watermarkify: {
224
- query: '你好',
225
- taskId: 'doubao20-20260417-130758-16',
224
+ prompt: '你好',
226
225
  timezoneOffsetHours: 8,
227
226
  // 默认会在同一浏览器上下文里访问 http://myip.ipip.net 补充 IP / Loc,超时默认 10000ms
228
227
  },
@@ -232,7 +231,6 @@ const image3 = await Share.captureScreen(page, {
232
231
  const image4 = await Share.captureScreen(page, {
233
232
  watermarkify: {
234
233
  query: '你好',
235
- taskId: 'doubao20-20260417-130758-16',
236
234
  ipLookup: false,
237
235
  resolverTimeoutMs: 180,
238
236
  resolver: async ({ signal }) => {
@@ -244,6 +242,9 @@ const image4 = await Share.captureScreen(page, {
244
242
  },
245
243
  });
246
244
 
245
+ // Prompt 字段默认取值链路:prompt -> query -> 页面 title
246
+ // 所以如果你只传 query,底部 Prompt 展示的就是实际问 AI 的 query
247
+
247
248
  // 如需原始截图,可显式关闭 watermarkify
248
249
  const image5 = await Share.captureScreen(page, {
249
250
  watermarkify: false,