@mablhq/mabl-cli 1.17.0 → 1.17.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.
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +11 -9
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowser.js +2 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowserLauncher.js +1 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerPage.js +3 -0
- package/commands/constants.js +3 -2
- package/commands/tests/testsUtil.js +11 -6
- package/commands/tests/tests_cmds/run.js +5 -0
- package/domUtil/index.js +1 -1
- package/domUtil/index.js.LICENSE.txt +5 -5
- package/execution/index.js +1 -1
- package/execution/index.js.LICENSE.txt +5 -5
- package/mablscript/actions/FindAction.js +40 -39
- package/mablscript/steps/AccessibilityCheck.js +5 -5
- package/mablscript/steps/AssertStep.js +12 -12
- package/mablscript/steps/AssertStepOld.js +8 -8
- package/mablscript/steps/ClickAndHoldStep.js +5 -5
- package/mablscript/steps/ClickStep.js +5 -5
- package/mablscript/steps/CreateVariableStep.js +2 -2
- package/mablscript/steps/DoubleClickStep.js +6 -6
- package/mablscript/steps/EnterTextStep.js +7 -7
- package/mablscript/steps/HoverStep.js +5 -5
- package/mablscript/steps/IfConditionStep.js +6 -6
- package/mablscript/steps/ReleaseStep.js +5 -5
- package/mablscript/steps/SelectStep.js +5 -5
- package/mablscript/steps/SendKeyStep.js +6 -6
- package/mablscript/steps/SetFilesStep.js +5 -5
- package/mablscript/steps/SwitchContextStep.js +3 -3
- package/mablscript/steps/WaitUntilStep.js +3 -3
- package/mablscriptFind/index.js +1 -1
- package/mablscriptFind/index.js.LICENSE.txt +5 -5
- package/package.json +1 -1
- package/resources/mablFind.js +1 -1
|
@@ -5,7 +5,7 @@ const FindAction_1 = require("../actions/FindAction");
|
|
|
5
5
|
const SeleniumIdeStep_1 = require("./SeleniumIdeStep");
|
|
6
6
|
const MablStep_1 = require("../MablStep");
|
|
7
7
|
const SwitchContextStepDescriptor_1 = require("../types/SwitchContextStepDescriptor");
|
|
8
|
-
const
|
|
8
|
+
const domUtil_1 = require("../../domUtil");
|
|
9
9
|
class SwitchContextStep extends MablStep_1.MablStep {
|
|
10
10
|
constructor(name, args, actions) {
|
|
11
11
|
super(name, args, actions);
|
|
@@ -28,7 +28,7 @@ class SwitchContextStep extends MablStep_1.MablStep {
|
|
|
28
28
|
this.findAction.setActionSourceIndexInStep(this.actions[0].actionSourceIndexInStep);
|
|
29
29
|
}
|
|
30
30
|
const findDescriptor = this.findAction.toDescriptor();
|
|
31
|
-
if (findDescriptor.findType ===
|
|
31
|
+
if (findDescriptor.findType === domUtil_1.FindType.FIND_TAB) {
|
|
32
32
|
this.switch = {
|
|
33
33
|
tab: findDescriptor,
|
|
34
34
|
find: findDescriptor,
|
|
@@ -37,7 +37,7 @@ class SwitchContextStep extends MablStep_1.MablStep {
|
|
|
37
37
|
Object.freeze(this.switch);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
if (findDescriptor.findType ===
|
|
40
|
+
if (findDescriptor.findType === domUtil_1.FindType.FIND_ONE) {
|
|
41
41
|
this.switch = {
|
|
42
42
|
frame: findDescriptor,
|
|
43
43
|
find: findDescriptor,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WaitUntilStep = void 0;
|
|
4
4
|
const MablStep_1 = require("../MablStep");
|
|
5
|
-
const
|
|
5
|
+
const domUtil_1 = require("../../domUtil");
|
|
6
6
|
class WaitUntilStep extends MablStep_1.MablStep {
|
|
7
7
|
constructor(name, args, actions) {
|
|
8
8
|
super(name, args, actions);
|
|
9
|
-
if ((0,
|
|
9
|
+
if ((0, domUtil_1.isFindElementType)(this.actions[0].getActionName())) {
|
|
10
10
|
this.findAction = this.actions[0];
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
@@ -19,7 +19,7 @@ class WaitUntilStep extends MablStep_1.MablStep {
|
|
|
19
19
|
toStepDescriptor() {
|
|
20
20
|
const find = this.findAction.toDescriptor();
|
|
21
21
|
switch (find.findType) {
|
|
22
|
-
case
|
|
22
|
+
case domUtil_1.FindType.FIND_ONE:
|
|
23
23
|
return {
|
|
24
24
|
find,
|
|
25
25
|
descriptorToActionMap: new Map().set(find, this.findAction),
|