@applitools/core 1.4.4 → 1.4.6

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.
@@ -2,12 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.extractBrokerUrl = void 0;
4
4
  async function extractBrokerUrl(driver) {
5
- if (!driver.isIOS)
6
- return null;
7
5
  try {
6
+ const selector = driver.isIOS
7
+ ? '//XCUIElementTypeOther[@name="Applitools_View"]'
8
+ : driver.isAndroid
9
+ ? '//android.widget.TextView[@content-desc="Applitools_View"]'
10
+ : null;
11
+ if (!selector)
12
+ return null;
8
13
  const element = await driver.element({
9
14
  type: 'xpath',
10
- selector: '//XCUIElementTypeOther[@name="Applitools_View"]',
15
+ selector,
11
16
  });
12
17
  const result = JSON.parse(await element.getText());
13
18
  return result.nextPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/core",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -61,16 +61,16 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@applitools/core-base": "1.1.31",
65
- "@applitools/dom-capture": "11.2.0",
64
+ "@applitools/core-base": "1.1.32",
65
+ "@applitools/dom-capture": "11.2.1",
66
66
  "@applitools/dom-snapshot": "4.7.3",
67
67
  "@applitools/driver": "1.11.26",
68
68
  "@applitools/logger": "1.1.42",
69
- "@applitools/nml-client": "1.3.28",
69
+ "@applitools/nml-client": "1.3.29",
70
70
  "@applitools/req": "1.1.28",
71
71
  "@applitools/screenshoter": "3.7.23",
72
72
  "@applitools/snippets": "2.4.14",
73
- "@applitools/ufg-client": "1.1.20",
73
+ "@applitools/ufg-client": "1.1.22",
74
74
  "@applitools/utils": "1.3.28",
75
75
  "abort-controller": "3.0.0",
76
76
  "chalk": "4.1.2",
@@ -83,11 +83,11 @@
83
83
  "devDependencies": {
84
84
  "@applitools/bongo": "^2.2.2",
85
85
  "@applitools/sdk-fake-eyes-server": "^2.1.3",
86
- "@applitools/spec-driver-puppeteer": "^1.1.37",
87
- "@applitools/spec-driver-selenium": "^1.5.24",
88
- "@applitools/spec-driver-webdriverio": "^1.4.21",
86
+ "@applitools/spec-driver-puppeteer": "^1.1.38",
87
+ "@applitools/spec-driver-selenium": "^1.5.25",
88
+ "@applitools/spec-driver-webdriverio": "^1.4.22",
89
89
  "@applitools/test-server": "^1.1.22",
90
- "@applitools/test-utils": "^1.5.9",
90
+ "@applitools/test-utils": "^1.5.10",
91
91
  "@types/mocha": "^9.1.1",
92
92
  "@types/node": "12",
93
93
  "@types/selenium-webdriver": "^4.1.2",