testdriverai 5.7.60 → 5.7.61

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.
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c2a145dfcaca5dc0340?share=w0K21CjUHiemBeJZCklmDw&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533ec4145dfcaca5dc0392?share=IoOQUumZ42LxYjU4Y3EtA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c35145dfcaca5dc0348?share=0u7WJY6cdru1yKQf5Gvgw&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533ee04ef7e78d2210145c?share=p6kAlhAPEf1O2OUHHupOzQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c454431e06c04eeb54a?share=uKq2HIAYO1EOW6o2eZxFg&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533ec34431e06c04eeb584?share=UnWkGXuU6R6yKoe12ZYaA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c74145dfcaca5dc0361?share=B1n5Qr0hD2TEedr6f2pz3g&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f274ef7e78d22101475?share=MpepgPrRVRz2CnLY9xwX0Q&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c570976ac0d13982dfd?share=T07IhlBEVVpizUi5eV5B5g&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533ef4ca32a749361048ef?share=olmGpOp6MIVO1mE8IuwaWg&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533cb6ca32a749361048b3?share=Rw4YIEaV6tW7y9W9ZDWPvA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f3d4ef7e78d2210147a?share=GGTCzvPVPWU1jDOaivv3g&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533ca20976ac0d13982e0c?share=dv0SpLwT1Yfwb4gPqi4AaA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f6aca32a74936104904?share=40GRtip8xz6qbSNerc3eQQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c5bca32a749361048a3?share=35mqRHOG9Xv1ZkcozexQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533ebf0976ac0d13982e39?share=AILkQH0WkuCDlMdNqs5xgA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533cb24ef7e78d22101424?share=oVnghxmXtrme6FQT24sQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f36ca32a749361048fe?share=ErSzyzQDefRjEetF4NdmJg&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c244ef7e78d22101400?share=o2H7XxX1b5T30MSR1BuYAQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533eb8145dfcaca5dc038a?share=7jtn1EtYydkuJcsVjrZkdQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c684ef7e78d22101414?share=ADSxdV0FTKwIDo4FthqXA&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f114ef7e78d2210146b?share=xS2drIAytTqywmRXZcmQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
@@ -1 +1 @@
1
- <iframe src="https://app.dashcam.io/replay/68533c6c704cce35dfee8d2d?share=qphKXmxokUiv7jgjc7EQ&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
1
+ <iframe src="https://app.dashcam.io/replay/68533f09145dfcaca5dc03b1?share=OJhVOdaJvhkZQuhQkqID3A&embed=true&timestamp=90000&playbackRate=5" width="100%" height="300" />
package/lib/commands.js CHANGED
@@ -85,6 +85,17 @@ const findImageOnScreen = async (relativePath, haystack, restrictToWindow) => {
85
85
 
86
86
  const scaledNeedle = await Jimp.read(path.join(needle));
87
87
  scaledNeedle.scale(needleSize);
88
+
89
+ const haystackImage = await Jimp.read(haystack);
90
+
91
+ if (
92
+ scaledNeedle.bitmap.width > haystackImage.bitmap.width ||
93
+ scaledNeedle.bitmap.height > haystackImage.bitmap.height
94
+ ) {
95
+ // Needle is larger than haystack, skip this scale factor
96
+ continue;
97
+ }
98
+
88
99
  const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "scaledNeedle_"));
89
100
  const scaledNeedlePath = path.join(
90
101
  tempDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.60",
3
+ "version": "5.7.61",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {