@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.js
CHANGED
|
@@ -6761,6 +6761,7 @@ var DEFAULT_QBOT_PAGE_OPTIONS = Object.freeze({
|
|
|
6761
6761
|
submitLoadTimeoutMs: 3e4,
|
|
6762
6762
|
coordinateBaseWidth: QBOT_IMAGE_BASE_WIDTH,
|
|
6763
6763
|
coordinateBaseHeight: QBOT_IMAGE_BASE_HEIGHT,
|
|
6764
|
+
coordinateYOffsetPx: -25,
|
|
6764
6765
|
clickIntervalMs: 250,
|
|
6765
6766
|
refreshVisibleTimeoutMs: 1e3,
|
|
6766
6767
|
refreshWaitMs: 1e3,
|
|
@@ -6827,7 +6828,7 @@ var clickQbotPoints = async (page, imageLocator, coordinates, config, deviceInpu
|
|
|
6827
6828
|
for (const point of coordinates) {
|
|
6828
6829
|
await deviceInput.clickPoint(page, {
|
|
6829
6830
|
x: box.x + point.x * scaleX,
|
|
6830
|
-
y: box.y + point.y * scaleY
|
|
6831
|
+
y: box.y + point.y * scaleY + config.coordinateYOffsetPx
|
|
6831
6832
|
}, config);
|
|
6832
6833
|
if (config.clickIntervalMs > 0) {
|
|
6833
6834
|
await page.waitForTimeout(config.clickIntervalMs);
|