@mablhq/mabl-cli 2.72.18 → 2.72.26
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/browserEngines/firefoxBrowserEngine.js +8 -0
- package/browserLauncher/index.js +1 -1
- package/commands/mcp/mcp_cmds/start.js +15 -26
- package/commands/mcp/mcp_cmds/tools/common.js +1 -61
- package/execution/index.js +1 -1
- package/mablscript/MablStepV2.js +0 -3
- package/mablscript/mobile/steps/stepUtil.js +2 -2
- package/mablscript/steps/EchoStep.js +2 -2
- package/mablscript/steps/IfConditionStep.js +3 -1
- package/package.json +3 -3
package/mablscript/MablStepV2.js
CHANGED
|
@@ -53,7 +53,7 @@ function buildElementDescriptionForAndroid(findTarget) {
|
|
|
53
53
|
return `unknown android element`;
|
|
54
54
|
}
|
|
55
55
|
if (androidElementSelector.find_prompt) {
|
|
56
|
-
return
|
|
56
|
+
return `${(0, domUtil_1.normalizeText)(androidElementSelector.find_prompt)}`;
|
|
57
57
|
}
|
|
58
58
|
const description = `"${getSimpleAndroidElementName(androidElementSelector.class)}" element`;
|
|
59
59
|
if (androidElementSelector?.hint) {
|
|
@@ -74,7 +74,7 @@ function buildElementDescriptionForiOS(findTarget) {
|
|
|
74
74
|
return `unknown iOS element`;
|
|
75
75
|
}
|
|
76
76
|
if (iOSElementSelector.find_prompt) {
|
|
77
|
-
return
|
|
77
|
+
return `${(0, domUtil_1.normalizeText)(iOSElementSelector.find_prompt)}`;
|
|
78
78
|
}
|
|
79
79
|
if (iOSElementSelector.name) {
|
|
80
80
|
return `"${iOSElementSelector.name}" element`;
|
|
@@ -21,7 +21,7 @@ class EchoStep extends MablStepV2_1.MablStepV2 {
|
|
|
21
21
|
static fromYaml(_stepName, stepArgs) {
|
|
22
22
|
const stepDescriptor = {
|
|
23
23
|
actionCode: EchoStep.actionCode,
|
|
24
|
-
value:
|
|
24
|
+
value: stepArgs.value?.toString(),
|
|
25
25
|
};
|
|
26
26
|
const step = new EchoStep(stepDescriptor);
|
|
27
27
|
step.setStepId(stepArgs.id);
|
|
@@ -30,7 +30,7 @@ class EchoStep extends MablStepV2_1.MablStepV2 {
|
|
|
30
30
|
static fromLegacyMablscript(args, _actions) {
|
|
31
31
|
const stepDescriptor = {
|
|
32
32
|
actionCode: EchoStep.actionCode,
|
|
33
|
-
value: args[0],
|
|
33
|
+
value: args[0]?.toString(),
|
|
34
34
|
};
|
|
35
35
|
const step = new EchoStep(stepDescriptor);
|
|
36
36
|
step.actions = _actions;
|
|
@@ -102,7 +102,9 @@ class IfConditionStep extends MablStepV2_1.MablStepV2 {
|
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
actions.push(FindAction_1.FindAction.findActionFromStepArgs(
|
|
105
|
+
actions.push(FindAction_1.FindAction.findActionFromStepArgs({
|
|
106
|
+
find: stepArgs.target,
|
|
107
|
+
}));
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mablhq/mabl-cli",
|
|
3
|
-
"version": "2.72.
|
|
3
|
+
"version": "2.72.26",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The official mabl command line interface tool",
|
|
6
6
|
"main": "index.js",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"open": "6.4.0",
|
|
80
80
|
"ora": "4.0.4",
|
|
81
81
|
"pixelmatch": "5.3.0",
|
|
82
|
-
"playwright": "1.
|
|
83
|
-
"playwright-core": "1.
|
|
82
|
+
"playwright": "1.55.0",
|
|
83
|
+
"playwright-core": "1.55.0",
|
|
84
84
|
"pluralize": "8.0.0",
|
|
85
85
|
"pngjs": "6.0.0",
|
|
86
86
|
"portfinder": "1.0.28",
|