@skrillex1224/playwright-toolkit 3.0.54 → 3.0.56
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.cjs +2 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6789,6 +6789,7 @@ var DEFAULT_QBOT_PAGE_OPTIONS = Object.freeze({
|
|
|
6789
6789
|
submitLoadTimeoutMs: 3e4,
|
|
6790
6790
|
coordinateBaseWidth: QBOT_IMAGE_BASE_WIDTH,
|
|
6791
6791
|
coordinateBaseHeight: QBOT_IMAGE_BASE_HEIGHT,
|
|
6792
|
+
coordinateYOffsetPx: -25,
|
|
6792
6793
|
clickIntervalMs: 250,
|
|
6793
6794
|
refreshVisibleTimeoutMs: 1e3,
|
|
6794
6795
|
refreshWaitMs: 1e3,
|
|
@@ -6855,7 +6856,7 @@ var clickQbotPoints = async (page, imageLocator, coordinates, config, deviceInpu
|
|
|
6855
6856
|
for (const point of coordinates) {
|
|
6856
6857
|
await deviceInput.clickPoint(page, {
|
|
6857
6858
|
x: box.x + point.x * scaleX,
|
|
6858
|
-
y: box.y + point.y * scaleY
|
|
6859
|
+
y: box.y + point.y * scaleY + config.coordinateYOffsetPx
|
|
6859
6860
|
}, config);
|
|
6860
6861
|
if (config.clickIntervalMs > 0) {
|
|
6861
6862
|
await page.waitForTimeout(config.clickIntervalMs);
|