@mablhq/mabl-cli 1.25.19 → 1.26.0

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.
Files changed (50) hide show
  1. package/api/entities/Browser.js +1 -0
  2. package/api/featureSet.js +2 -2
  3. package/browserLauncher/browserLauncherFactory.js +3 -3
  4. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +2 -2
  5. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +13 -1
  6. package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +16 -16
  7. package/browserLauncher/types.js +5 -1
  8. package/commands/browserTypes.js +19 -8
  9. package/commands/constants.js +6 -5
  10. package/commands/tests/testsUtil.js +67 -85
  11. package/commands/tests/tests_cmds/run-cloud.js +2 -2
  12. package/commands/tests/tests_cmds/run.js +2 -0
  13. package/domUtil/index.js +1 -2
  14. package/execution/index.js +1 -1
  15. package/index.d.ts +2 -0
  16. package/mablscript/MablAction.js +31 -1
  17. package/mablscript/actions/ConditionAction.js +4 -0
  18. package/mablscript/actions/FindAction.js +3 -0
  19. package/mablscript/actions/GenerateRandomStringAction.js +3 -0
  20. package/mablscript/actions/GetVariableValue.js +3 -0
  21. package/mablscript/actions/JavaScriptAction.js +7 -0
  22. package/mablscript/importer.js +10 -3
  23. package/mablscript/steps/AssertStep.js +10 -0
  24. package/mablscript/steps/ClickAndHoldStep.js +3 -0
  25. package/mablscript/steps/ClickStep.js +3 -0
  26. package/mablscript/steps/CreateVariableStep.js +6 -0
  27. package/mablscript/steps/DoubleClickStep.js +3 -0
  28. package/mablscript/steps/DownloadStep.js +4 -0
  29. package/mablscript/steps/EchoStep.js +3 -0
  30. package/mablscript/steps/EnterTextStep.js +6 -0
  31. package/mablscript/steps/EvaluateJavaScriptStep.js +3 -0
  32. package/mablscript/steps/HoverStep.js +3 -0
  33. package/mablscript/steps/IfConditionStep.js +9 -0
  34. package/mablscript/steps/OpenEmailStep.js +3 -0
  35. package/mablscript/steps/ReleaseStep.js +3 -0
  36. package/mablscript/steps/RemoveCookieStep.js +4 -0
  37. package/mablscript/steps/SelectStep.js +7 -0
  38. package/mablscript/steps/SendHttpRequestStep.js +8 -0
  39. package/mablscript/steps/SendKeyStep.js +3 -0
  40. package/mablscript/steps/SetCookieStep.js +7 -0
  41. package/mablscript/steps/SetFilesStep.js +3 -0
  42. package/mablscript/steps/SwitchContextStep.js +4 -0
  43. package/mablscript/steps/VisitUrlStep.js +4 -0
  44. package/mablscript/steps/WaitUntilStep.js +3 -0
  45. package/mablscriptFind/index.js +1 -1
  46. package/package.json +2 -2
  47. package/resources/mablFind.js +1 -1
  48. package/browserLauncher/runnerType.js +0 -7
  49. package/domUtil/index.js.LICENSE.txt +0 -14
  50. package/mablscript/AttributesConstants.js +0 -115
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RunnerType = void 0;
4
- var RunnerType;
5
- (function (RunnerType) {
6
- RunnerType["Playwright"] = "playwright";
7
- })(RunnerType = exports.RunnerType || (exports.RunnerType = {}));
@@ -1,14 +0,0 @@
1
- /**
2
- * @license Complex.js v2.1.1 12/05/2020
3
- *
4
- * Copyright (c) 2020, Robert Eisele (robert@xarg.org)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- **/
7
-
8
- /**
9
- * @license Fraction.js v4.2.0 05/03/2022
10
- * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
11
- *
12
- * Copyright (c) 2021, Robert Eisele (robert@xarg.org)
13
- * Dual licensed under the MIT or GPL Version 2 licenses.
14
- **/
@@ -1,115 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALLOWED_ASSERTABLE_EMAIL_ATTRS_PROPS = exports.isAllowedAssertableUrlAttrProps = exports.ALLOWED_ASSERTABLE_URL_ATTRS_PROPS = exports.ALLOWED_ASSERTABLE_COOKIES_ATTRS_PROPS = exports.ALLOWED_ASSERTABLE_ATTRS_PROPS = void 0;
4
- exports.ALLOWED_ASSERTABLE_ATTRS_PROPS = [
5
- 'accessKey',
6
- 'accessKeyLabel',
7
- 'align',
8
- 'alt',
9
- 'aria-checked',
10
- 'aria-label',
11
- 'aria-labelledby',
12
- 'aria-disabled',
13
- 'autofocus',
14
- 'border',
15
- 'checked',
16
- 'class',
17
- 'className',
18
- 'clientHeight',
19
- 'clientLeft',
20
- 'clientTop',
21
- 'clientWidth',
22
- 'complete',
23
- 'computedName',
24
- 'computedRole',
25
- 'contentEditable',
26
- 'contextMenu',
27
- 'crossOrigin',
28
- 'currentSrc',
29
- 'dataset',
30
- 'defaultChecked',
31
- 'defaultValue',
32
- 'dir',
33
- 'disabled',
34
- 'draggable',
35
- 'formEncType',
36
- 'formMethod',
37
- 'formNoValidate',
38
- 'formTarget',
39
- 'height',
40
- 'hidden',
41
- 'href',
42
- 'hspace',
43
- 'id',
44
- 'indeterminate',
45
- 'inert',
46
- 'innerText',
47
- 'isContentEditable',
48
- 'isMap',
49
- 'itemId',
50
- 'itemScope',
51
- 'lang',
52
- 'length',
53
- 'localName',
54
- 'longDesc',
55
- 'lowSrc',
56
- 'maxLength',
57
- 'multiple',
58
- 'name',
59
- 'namespaceURI',
60
- 'naturalHeight',
61
- 'naturalWidth',
62
- 'noModule',
63
- 'offsetHeight',
64
- 'offsetLeft',
65
- 'offsetTop',
66
- 'offsetWidth',
67
- 'prefix',
68
- 'referrerPolicy',
69
- 'required',
70
- 'selectedIndex',
71
- 'size',
72
- 'sizes',
73
- 'slot',
74
- 'src',
75
- 'srcset',
76
- 'tabIndex',
77
- 'tagName',
78
- 'title',
79
- 'translate',
80
- 'type',
81
- 'validationMessage',
82
- 'validity',
83
- 'value',
84
- 'vspace',
85
- 'width',
86
- 'willValidate',
87
- ];
88
- exports.ALLOWED_ASSERTABLE_COOKIES_ATTRS_PROPS = [
89
- 'domain',
90
- 'http_only',
91
- 'name',
92
- 'path',
93
- 'expires',
94
- 'secure',
95
- 'value',
96
- ];
97
- exports.ALLOWED_ASSERTABLE_URL_ATTRS_PROPS = [
98
- 'hash',
99
- 'host',
100
- 'hostname',
101
- 'href',
102
- 'password',
103
- 'pathname',
104
- 'port',
105
- 'protocol',
106
- 'search',
107
- 'username',
108
- ];
109
- const ALLOWED_ASSERTABLE_URL_ATTRS_PROPS_SET = new Set(exports.ALLOWED_ASSERTABLE_URL_ATTRS_PROPS);
110
- const isAllowedAssertableUrlAttrProps = (x) => ALLOWED_ASSERTABLE_URL_ATTRS_PROPS_SET.has(x);
111
- exports.isAllowedAssertableUrlAttrProps = isAllowedAssertableUrlAttrProps;
112
- exports.ALLOWED_ASSERTABLE_EMAIL_ATTRS_PROPS = [
113
- 'from',
114
- 'subject',
115
- ];