@applitools/core 1.2.4 → 1.2.5
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.
|
@@ -28,6 +28,7 @@ const driver_1 = require("@applitools/driver");
|
|
|
28
28
|
const take_screenshot_1 = require("../automation/utils/take-screenshot");
|
|
29
29
|
const take_dom_capture_1 = require("./utils/take-dom-capture");
|
|
30
30
|
const utils = __importStar(require("@applitools/utils"));
|
|
31
|
+
const snippets_1 = require("@applitools/snippets");
|
|
31
32
|
function makeExtractText({ spec, eyes, target: defaultTarget, logger: defaultLogger, }) {
|
|
32
33
|
return async function extractText({ target = defaultTarget, settings, logger = defaultLogger, } = {}) {
|
|
33
34
|
logger.log('Command "extractText" is called with settings', settings);
|
|
@@ -44,8 +45,7 @@ function makeExtractText({ spec, eyes, target: defaultTarget, logger: defaultLog
|
|
|
44
45
|
const element = await driver.currentContext.element(settings.region);
|
|
45
46
|
if (!element)
|
|
46
47
|
throw new Error(`Unable to find element using provided selector`);
|
|
47
|
-
|
|
48
|
-
settings.hint = await driver.currentContext.execute('return arguments[0].innerText', element);
|
|
48
|
+
settings.hint = await driver.currentContext.execute(snippets_1.getText, [element]);
|
|
49
49
|
if (settings.hint)
|
|
50
50
|
settings.hint = settings.hint.replace(/[.\\+]/g, '\\$&');
|
|
51
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@applitools/core-base": "1.1.7",
|
|
65
65
|
"@applitools/dom-capture": "11.2.0",
|
|
66
66
|
"@applitools/dom-snapshot": "4.7.0",
|
|
67
|
-
"@applitools/driver": "1.11.
|
|
67
|
+
"@applitools/driver": "1.11.1",
|
|
68
68
|
"@applitools/logger": "1.1.27",
|
|
69
69
|
"@applitools/nml-client": "1.3.5",
|
|
70
70
|
"@applitools/req": "1.1.12",
|
|
71
|
-
"@applitools/screenshoter": "3.7.
|
|
72
|
-
"@applitools/snippets": "2.4.
|
|
71
|
+
"@applitools/screenshoter": "3.7.1",
|
|
72
|
+
"@applitools/snippets": "2.4.6",
|
|
73
73
|
"@applitools/ufg-client": "1.1.2",
|
|
74
74
|
"@applitools/utils": "1.3.13",
|
|
75
75
|
"abort-controller": "3.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@applitools/spec-driver-puppeteer": "^1.1.18",
|
|
82
82
|
"@applitools/spec-driver-selenium": "^1.5.4",
|
|
83
83
|
"@applitools/spec-driver-webdriverio": "^1.4.2",
|
|
84
|
-
"@applitools/test-server": "^1.1.
|
|
84
|
+
"@applitools/test-server": "^1.1.8",
|
|
85
85
|
"@applitools/test-utils": "^1.5.2",
|
|
86
86
|
"@types/mocha": "^9.1.1",
|
|
87
87
|
"@types/node": "12",
|