@mablhq/mabl-cli 1.53.5 → 1.55.1
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/README.md +4 -4
- package/browserLauncher/playwrightBrowserLauncher/chromium/chromiumFrameDelegate.js +5 -2
- package/browserLauncher/playwrightBrowserLauncher/firefox/firefoxFrameDelegate.js +7 -0
- package/browserLauncher/playwrightBrowserLauncher/nonChromium/nonChromiumAbstractFrameDelegate.js +3 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +2 -2
- package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +1 -1
- package/core/execution/ApiTestUtils.js +781 -1
- package/core/trainer/trainingSessions-types.js +5 -0
- package/domUtil/index.js +1 -1
- package/execution/index.js +1 -1
- package/execution/index.js.LICENSE.txt +1 -1
- package/mablApi/index.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/mablscriptFind/index.js.LICENSE.txt +2 -0
- package/package.json +3 -3
- package/proxy/index.js +1 -1
- package/proxy/index.js.LICENSE.txt +9 -2
- package/proxy/lib/xpath.js +1 -1
- package/resources/mablFind.js +1 -1
- package/resources/popupDismissal.js +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Complete help documentation available at
|
|
|
35
35
|
|
|
36
36
|
## Installation
|
|
37
37
|
|
|
38
|
-
Note: **Node
|
|
38
|
+
Note: **Node 16+ is required** to run the mabl CLI
|
|
39
39
|
|
|
40
40
|
Stable version:
|
|
41
41
|
|
|
@@ -350,10 +350,10 @@ mabl config delete http.sslVerify
|
|
|
350
350
|
|
|
351
351
|
## Installation Troubleshooting
|
|
352
352
|
|
|
353
|
-
If you receive the following error message, you need to ensure you have Node
|
|
353
|
+
If you receive the following error message, you need to ensure you have Node 16+
|
|
354
354
|
installed.
|
|
355
355
|
|
|
356
356
|
```bash
|
|
357
|
-
npm WARN notsup Unsupported engine for @mablhq/mabl-cli@
|
|
358
|
-
npm WARN notsup Not compatible with your version of node/npm: @mablhq/mabl-cli@
|
|
357
|
+
npm WARN notsup Unsupported engine for @mablhq/mabl-cli@1.54.0: wanted: {"node":">= 16.0.0"} (current: {"node":"8.15.1","npm":"6.13.4"})
|
|
358
|
+
npm WARN notsup Not compatible with your version of node/npm: @mablhq/mabl-cli@1.54.0
|
|
359
359
|
```
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChromiumFrameDelegate = void 0;
|
|
4
4
|
class ChromiumFrameDelegate {
|
|
5
|
-
constructor(
|
|
6
|
-
this.
|
|
5
|
+
constructor(frame) {
|
|
6
|
+
this.frame = frame;
|
|
7
|
+
}
|
|
8
|
+
url() {
|
|
9
|
+
return Promise.resolve(this.frame.url());
|
|
7
10
|
}
|
|
8
11
|
addBindingToSecondaryWorld(_binding) {
|
|
9
12
|
return Promise.resolve();
|
|
@@ -16,5 +16,12 @@ class FirefoxFrameDelegate extends nonChromiumAbstractFrameDelegate_1.NonChromiu
|
|
|
16
16
|
}
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
+
async url() {
|
|
20
|
+
let url = this.frame.url();
|
|
21
|
+
if (url === '') {
|
|
22
|
+
url = await this.frame.evaluate(() => window.location.href);
|
|
23
|
+
}
|
|
24
|
+
return url;
|
|
25
|
+
}
|
|
19
26
|
}
|
|
20
27
|
exports.FirefoxFrameDelegate = FirefoxFrameDelegate;
|
|
@@ -57,9 +57,9 @@ class PlaywrightJsHandle {
|
|
|
57
57
|
return this.handle.jsonValue();
|
|
58
58
|
}
|
|
59
59
|
isContextDestroyed() {
|
|
60
|
-
var _a, _b
|
|
60
|
+
var _a, _b;
|
|
61
61
|
const elementImpl = playwright._toImpl(this.handle);
|
|
62
|
-
return (
|
|
62
|
+
return !!((_b = (_a = elementImpl._context) === null || _a === void 0 ? void 0 : _a._contextDestroyedRace) === null || _b === void 0 ? void 0 : _b._terminateError);
|
|
63
63
|
}
|
|
64
64
|
static unwrapProperties(arg, addSecondaryWorldFlag = false) {
|
|
65
65
|
if (arg === undefined) {
|
|
@@ -165,7 +165,7 @@ class PlaywrightFrame extends browserLauncher_1.Frame {
|
|
|
165
165
|
return (0, utils_1.mapIfNotNull)(this.frame.parentFrame(), (frame) => this.parentPage.getOrCreateFrame(frame));
|
|
166
166
|
}
|
|
167
167
|
url() {
|
|
168
|
-
return this.
|
|
168
|
+
return this.delegate.url();
|
|
169
169
|
}
|
|
170
170
|
async waitForSelector(selector, options) {
|
|
171
171
|
return (0, utils_1.mapIfNotNull)(await this.frame.waitForSelector(selector, options), (handle) => new playwrightDom_1.PlaywrightElementHandle(handle, this.parentPage, this.parentPage.delegate.createElementHandleDelegate(handle)));
|