@appium/images-plugin 2.0.6 → 2.0.8
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/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/build/lib/compare.d.ts
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
export type OccurrenceResult = import('@appium/opencv').OccurrenceResult;
|
|
2
|
-
|
|
3
|
-
* Performs images comparison using OpenCV framework features.
|
|
4
|
-
* It is expected that both OpenCV framework and opencv4nodejs
|
|
5
|
-
* module are installed on the machine where Appium server is running.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} mode - One of possible comparison modes:
|
|
8
|
-
* matchFeatures, getSimilarity, matchTemplate
|
|
9
|
-
* @param {string} firstImage - Base64-encoded image file.
|
|
10
|
-
* All image formats, that OpenCV library itself accepts, are supported.
|
|
11
|
-
* @param {string} secondImage - Base64-encoded image file.
|
|
12
|
-
* All image formats, that OpenCV library itself accepts, are supported.
|
|
13
|
-
* @param {object} [options] - The content of this dictionary depends
|
|
14
|
-
* on the actual `mode` value. See the documentation on `@appium/support`
|
|
15
|
-
* module for more details.
|
|
16
|
-
* @returns {Promise<object|object[]>} The content of the resulting dictionary depends
|
|
17
|
-
* on the actual `mode` and `options` values. See the documentation on
|
|
18
|
-
* `@appium/support` module for more details.
|
|
19
|
-
* @throws {Error} If required OpenCV modules are not installed or
|
|
20
|
-
* if `mode` value is incorrect or if there was an unexpected issue while
|
|
21
|
-
* matching the images.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* @type {import('@appium/types').PluginCommand<[string, string, string, object|undefined], Promise<OccurrenceResult>>}
|
|
25
|
-
*/
|
|
26
|
-
export function compareImages(mode: import("@appium/types").NextPluginCallback, firstImage: [string, string, string, any], secondImage: unknown, options?: unknown): Promise<any>;
|
|
2
|
+
export function compareImages(next: import("@appium/types").NextPluginCallback, driver: [string, string, string, any], ...args: Promise<import("@appium/opencv").OccurrenceResult>): Promise<any>;
|
|
27
3
|
export const DEFAULT_MATCH_THRESHOLD: 0.4;
|
|
28
4
|
export const MATCH_TEMPLATE_MODE: "matchTemplate";
|
|
29
5
|
export const MATCH_FEATURES_MODE: "matchFeatures";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;AAPnD,kMAGC;AAnFJ,0CAAoC;AAFpC,kDAA4C;AAF5C,kDAA4C;AAC5C,kDAA4C"}
|
|
@@ -23,7 +23,7 @@ export default class ImageElement {
|
|
|
23
23
|
*
|
|
24
24
|
* @returns {object} - the result of running a command
|
|
25
25
|
*/
|
|
26
|
-
static execute(driver: import(
|
|
26
|
+
static execute(driver: import("appium/driver").BaseDriver<any, import("@appium/types").StringRecord>, imgEl: any, cmd: string, ...args: string[]): object;
|
|
27
27
|
/**
|
|
28
28
|
* @param {string} b64Template - the base64-encoded image which was used to
|
|
29
29
|
* find this ImageElement
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-element.d.ts","sourceRoot":"","sources":["../../lib/image-element.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;GAGG;AACH;IAsLE;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"image-element.d.ts","sourceRoot":"","sources":["../../lib/image-element.js"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;GAGG;AACH;IAsLE;;;;;;;;;OASG;IACH,uHANW,MAAM,WAEN,MAAM,EAAE,GAEN,MAAM,CA8BlB;IA3ND;;;;;;;;;OASG;IACH,yBATW,MAAM,QAEN,IAAI,SACJ,MAAM,cAEN,MAAM,kBAEN,OAAO,UAAU,EAAE,OAAO,SASpC;IANC,iBAA2B;IAC3B,mCAAgB;IAChB,WAAmD;IACnD,+BAAgC;IAChC,cAAkB;IAClB,0CAAoB;IAGtB;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,uBAKC;IAED;;OAEG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uBALW,MAAM,GAGJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,cALW,YAAY,GAEV,OAAO,CAUnB;IAED;;;;;OAKG;IACH,wCAkGC;CAyCF;;;;;WA3Oa,MAAM;;;;YACN,MAAM;;;;;;OAKN,MAAM;;;;OACN,MAAM;;mBA+OP,OAAO,eAAe,EAAE,IAAI;sBAC5B,OAAO,eAAe,EAAE,OAAO;AA7P5C,2DAAqD;AADrD,qDAA+C;AAG/C,6CAAyC;AALzC,2DAAqD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/images-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Plugin for working with images and image elements in Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@appium/opencv": "^2.0.
|
|
42
|
+
"@appium/opencv": "^2.0.8",
|
|
43
43
|
"lodash": "4.17.21",
|
|
44
|
-
"lru-cache": "7.
|
|
44
|
+
"lru-cache": "7.18.3",
|
|
45
45
|
"source-map-support": "0.5.21"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "872b924a97c13142bdb8bf4218a4db324f309ce4",
|
|
62
62
|
"typedoc": {
|
|
63
63
|
"entryPoint": "./lib/plugin.js"
|
|
64
64
|
}
|