@testmuai/playwright-bindings 0.1.44 → 0.1.45-beta.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 +28 -0
- package/dist/configure.d.ts +3 -0
- package/dist/configure.d.ts.map +1 -1
- package/dist/configure.js +8 -0
- package/dist/configure.js.map +1 -1
- package/dist/errors.d.ts +6 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +87 -100
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -37
- package/dist/index.js.map +1 -1
- package/dist/router.d.ts +53 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +137 -0
- package/dist/router.js.map +1 -0
- package/dist/v3/actionEngine.d.ts.map +1 -0
- package/dist/v3/actionEngine.js +194 -0
- package/dist/v3/actionEngine.js.map +1 -0
- package/dist/v3/actionSpecs.d.ts.map +1 -0
- package/dist/v3/actionSpecs.js +354 -0
- package/dist/v3/actionSpecs.js.map +1 -0
- package/dist/v3/capability.d.ts.map +1 -0
- package/dist/v3/capability.js +346 -0
- package/dist/v3/capability.js.map +1 -0
- package/dist/v3/downloadsPath.d.ts.map +1 -0
- package/dist/v3/downloadsPath.js.map +1 -0
- package/dist/v3/healCache.d.ts.map +1 -0
- package/dist/v3/healCache.js.map +1 -0
- package/dist/v3/healPatch.d.ts +22 -0
- package/dist/v3/healPatch.d.ts.map +1 -0
- package/dist/v3/healPatch.js +345 -0
- package/dist/v3/healPatch.js.map +1 -0
- package/dist/v3/helpers/a11yFlatten.d.ts.map +1 -0
- package/dist/v3/helpers/a11yFlatten.js +569 -0
- package/dist/v3/helpers/a11yFlatten.js.map +1 -0
- package/dist/v3/helpers/apiCalls.d.ts.map +1 -0
- package/dist/v3/helpers/apiCalls.js +59 -0
- package/dist/v3/helpers/apiCalls.js.map +1 -0
- package/dist/v3/helpers/assertion.d.ts.map +1 -0
- package/dist/v3/helpers/assertion.js +105 -0
- package/dist/v3/helpers/assertion.js.map +1 -0
- package/dist/v3/helpers/assertionV3.d.ts.map +1 -0
- package/dist/v3/helpers/assertionV3.js.map +1 -0
- package/dist/v3/helpers/autohealAx.d.ts.map +1 -0
- package/dist/v3/helpers/autohealAx.js +148 -0
- package/dist/v3/helpers/autohealAx.js.map +1 -0
- package/dist/v3/helpers/axTree/actionable.d.ts.map +1 -0
- package/dist/v3/helpers/axTree/actionable.js +404 -0
- package/dist/v3/helpers/axTree/actionable.js.map +1 -0
- package/dist/v3/helpers/axTree/captureAxTree.d.ts.map +1 -0
- package/dist/v3/helpers/axTree/captureAxTree.js.map +1 -0
- package/dist/v3/helpers/axTree/captureFrameForest.d.ts.map +1 -0
- package/dist/v3/helpers/axTree/captureFrameForest.js +475 -0
- package/dist/v3/helpers/axTree/captureFrameForest.js.map +1 -0
- package/dist/v3/helpers/axTree/index.d.ts.map +1 -0
- package/dist/v3/helpers/axTree/index.js.map +1 -0
- package/dist/v3/helpers/axTree/serializeAxTree.d.ts.map +1 -0
- package/dist/v3/helpers/axTree/serializeAxTree.js.map +1 -0
- package/dist/v3/helpers/clipboard-intercept.d.ts.map +1 -0
- package/dist/v3/helpers/clipboard-intercept.js.map +1 -0
- package/dist/v3/helpers/clipboard.d.ts.map +1 -0
- package/dist/v3/helpers/clipboard.js.map +1 -0
- package/dist/v3/helpers/condition.d.ts +100 -0
- package/dist/v3/helpers/condition.d.ts.map +1 -0
- package/dist/v3/helpers/condition.js +356 -0
- package/dist/v3/helpers/condition.js.map +1 -0
- package/dist/v3/helpers/cookies.d.ts.map +1 -0
- package/dist/v3/helpers/cookies.js +66 -0
- package/dist/v3/helpers/cookies.js.map +1 -0
- package/dist/v3/helpers/coordinateResolver.d.ts.map +1 -0
- package/dist/v3/helpers/coordinateResolver.js +118 -0
- package/dist/v3/helpers/coordinateResolver.js.map +1 -0
- package/dist/v3/helpers/coordinateResolverRead.d.ts.map +1 -0
- package/dist/v3/helpers/coordinateResolverRead.js +107 -0
- package/dist/v3/helpers/coordinateResolverRead.js.map +1 -0
- package/dist/v3/helpers/credits.d.ts.map +1 -0
- package/dist/v3/helpers/credits.js +52 -0
- package/dist/v3/helpers/credits.js.map +1 -0
- package/dist/v3/helpers/derive.d.ts.map +1 -0
- package/dist/v3/helpers/derive.js +87 -0
- package/dist/v3/helpers/derive.js.map +1 -0
- package/dist/v3/helpers/devtools.d.ts.map +1 -0
- package/dist/v3/helpers/devtools.js +1215 -0
- package/dist/v3/helpers/devtools.js.map +1 -0
- package/dist/v3/helpers/dialog.d.ts.map +1 -0
- package/dist/v3/helpers/dialog.js.map +1 -0
- package/dist/v3/helpers/drag.d.ts.map +1 -0
- package/dist/v3/helpers/drag.js +276 -0
- package/dist/v3/helpers/drag.js.map +1 -0
- package/dist/v3/helpers/evaluation/colors.d.ts.map +1 -0
- package/dist/v3/helpers/evaluation/colors.js.map +1 -0
- package/dist/v3/helpers/evaluation/evaluate.d.ts.map +1 -0
- package/dist/v3/helpers/evaluation/evaluate.js.map +1 -0
- package/dist/v3/helpers/executeApi.d.ts.map +1 -0
- package/dist/v3/helpers/executeApi.js +373 -0
- package/dist/v3/helpers/executeApi.js.map +1 -0
- package/dist/v3/helpers/executeDb.d.ts.map +1 -0
- package/dist/v3/helpers/executeDb.js +54 -0
- package/dist/v3/helpers/executeDb.js.map +1 -0
- package/dist/v3/helpers/executeJs.d.ts.map +1 -0
- package/dist/v3/helpers/executeJs.js +93 -0
- package/dist/v3/helpers/executeJs.js.map +1 -0
- package/dist/v3/helpers/gesture.d.ts.map +1 -0
- package/dist/v3/helpers/gesture.js +131 -0
- package/dist/v3/helpers/gesture.js.map +1 -0
- package/dist/v3/helpers/healCascade.d.ts.map +1 -0
- package/dist/v3/helpers/healCascade.js +418 -0
- package/dist/v3/helpers/healCascade.js.map +1 -0
- package/dist/v3/helpers/iframeA11y.d.ts.map +1 -0
- package/dist/v3/helpers/iframeA11y.js +128 -0
- package/dist/v3/helpers/iframeA11y.js.map +1 -0
- package/dist/v3/helpers/kaneCli.d.ts.map +1 -0
- package/dist/v3/helpers/kaneCli.js +319 -0
- package/dist/v3/helpers/kaneCli.js.map +1 -0
- package/dist/v3/helpers/loop.d.ts +4 -0
- package/dist/v3/helpers/loop.d.ts.map +1 -0
- package/dist/v3/helpers/loop.js +4 -0
- package/dist/v3/helpers/loop.js.map +1 -0
- package/dist/v3/helpers/math.d.ts.map +1 -0
- package/dist/v3/helpers/math.js +119 -0
- package/dist/v3/helpers/math.js.map +1 -0
- package/dist/v3/helpers/network.d.ts.map +1 -0
- package/dist/v3/helpers/network.js +185 -0
- package/dist/v3/helpers/network.js.map +1 -0
- package/dist/v3/helpers/pageReady.d.ts.map +1 -0
- package/dist/v3/helpers/pageReady.js +85 -0
- package/dist/v3/helpers/pageReady.js.map +1 -0
- package/dist/v3/helpers/png.d.ts.map +1 -0
- package/dist/v3/helpers/png.js.map +1 -0
- package/dist/v3/helpers/queryResult.d.ts.map +1 -0
- package/dist/v3/helpers/queryResult.js.map +1 -0
- package/dist/v3/helpers/runtimeSnapshot.d.ts.map +1 -0
- package/dist/v3/helpers/runtimeSnapshot.js +204 -0
- package/dist/v3/helpers/runtimeSnapshot.js.map +1 -0
- package/dist/v3/helpers/schemaAssertion.d.ts.map +1 -0
- package/dist/v3/helpers/schemaAssertion.js +117 -0
- package/dist/v3/helpers/schemaAssertion.js.map +1 -0
- package/dist/v3/helpers/screenshot.d.ts +41 -0
- package/dist/v3/helpers/screenshot.d.ts.map +1 -0
- package/dist/v3/helpers/screenshot.js +83 -0
- package/dist/v3/helpers/screenshot.js.map +1 -0
- package/dist/v3/helpers/scrollUntil.d.ts.map +1 -0
- package/dist/v3/helpers/scrollUntil.js +90 -0
- package/dist/v3/helpers/scrollUntil.js.map +1 -0
- package/dist/v3/helpers/smartui.d.ts.map +1 -0
- package/dist/v3/helpers/smartui.js +77 -0
- package/dist/v3/helpers/smartui.js.map +1 -0
- package/dist/v3/helpers/sseParser.d.ts.map +1 -0
- package/dist/v3/helpers/sseParser.js.map +1 -0
- package/dist/v3/helpers/tabs.d.ts +43 -0
- package/dist/v3/helpers/tabs.d.ts.map +1 -0
- package/dist/v3/helpers/tabs.js +258 -0
- package/dist/v3/helpers/tabs.js.map +1 -0
- package/dist/v3/helpers/text.d.ts.map +1 -0
- package/dist/v3/helpers/text.js.map +1 -0
- package/dist/v3/helpers/textNormalize.d.ts.map +1 -0
- package/dist/v3/helpers/textNormalize.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/domStructured.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/domStructured.js +242 -0
- package/dist/v3/helpers/textualAnalyzer/domStructured.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/evaluate.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/evaluate.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/extractor.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/extractor.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/heal.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/heal.js +120 -0
- package/dist/v3/helpers/textualAnalyzer/heal.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/index.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/index.js +60 -0
- package/dist/v3/helpers/textualAnalyzer/index.js.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +1 -0
- package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.js +224 -0
- package/dist/v3/helpers/textualAnalyzer/locatorEnrichment.js.map +1 -0
- package/dist/v3/helpers/textualRead.d.ts.map +1 -0
- package/dist/v3/helpers/textualRead.js.map +1 -0
- package/dist/v3/helpers/vision.d.ts +79 -0
- package/dist/v3/helpers/vision.d.ts.map +1 -0
- package/dist/v3/helpers/vision.js +235 -0
- package/dist/v3/helpers/vision.js.map +1 -0
- package/dist/v3/helpers/visionFence.d.ts.map +1 -0
- package/dist/v3/helpers/visionFence.js.map +1 -0
- package/dist/v3/helpers/visionV3.d.ts +52 -0
- package/dist/v3/helpers/visionV3.d.ts.map +1 -0
- package/dist/v3/helpers/visionV3.js +366 -0
- package/dist/v3/helpers/visionV3.js.map +1 -0
- package/dist/v3/helpers/wait.d.ts.map +1 -0
- package/dist/v3/helpers/wait.js +48 -0
- package/dist/v3/helpers/wait.js.map +1 -0
- package/dist/v3/http.d.ts.map +1 -0
- package/dist/v3/http.js +45 -0
- package/dist/v3/http.js.map +1 -0
- package/dist/v3/httpClient.d.ts.map +1 -0
- package/dist/v3/httpClient.js.map +1 -0
- package/dist/v3/index.d.ts +40 -0
- package/dist/v3/index.d.ts.map +1 -0
- package/dist/v3/index.js +41 -0
- package/dist/v3/index.js.map +1 -0
- package/dist/v3/rankedLocator.d.ts.map +1 -0
- package/dist/v3/rankedLocator.js +85 -0
- package/dist/v3/rankedLocator.js.map +1 -0
- package/dist/v3/relayProxy.d.ts.map +1 -0
- package/dist/v3/relayProxy.js +485 -0
- package/dist/v3/relayProxy.js.map +1 -0
- package/dist/v3/reporters/index.d.ts.map +1 -0
- package/dist/v3/reporters/index.js +7 -0
- package/dist/v3/reporters/index.js.map +1 -0
- package/dist/v3/reporters/local.d.ts.map +1 -0
- package/dist/v3/reporters/local.js +40 -0
- package/dist/v3/reporters/local.js.map +1 -0
- package/dist/v3/reporters/lt.d.ts.map +1 -0
- package/dist/v3/reporters/lt.js +122 -0
- package/dist/v3/reporters/lt.js.map +1 -0
- package/dist/v3/reporters/null.d.ts.map +1 -0
- package/dist/v3/reporters/null.js.map +1 -0
- package/dist/v3/routeFailure.d.ts.map +1 -0
- package/dist/v3/routeFailure.js +34 -0
- package/dist/v3/routeFailure.js.map +1 -0
- package/dist/v3/session.d.ts.map +1 -0
- package/dist/v3/session.js +312 -0
- package/dist/v3/session.js.map +1 -0
- package/dist/v3/step.d.ts.map +1 -0
- package/dist/v3/step.js +112 -0
- package/dist/v3/step.js.map +1 -0
- package/dist/v3/stepVariables.d.ts.map +1 -0
- package/dist/v3/stepVariables.js +61 -0
- package/dist/v3/stepVariables.js.map +1 -0
- package/dist/v3/test.d.ts.map +1 -0
- package/dist/v3/test.js.map +1 -0
- package/dist/v3/testConfig.d.ts.map +1 -0
- package/dist/v3/testConfig.js.map +1 -0
- package/dist/v3/testState.d.ts.map +1 -0
- package/dist/v3/testState.js.map +1 -0
- package/dist/v3/vars.d.ts +84 -0
- package/dist/v3/vars.d.ts.map +1 -0
- package/dist/v3/vars.js +913 -0
- package/dist/v3/vars.js.map +1 -0
- package/dist/v3/visionLocator.d.ts.map +1 -0
- package/dist/v3/visionLocator.js +117 -0
- package/dist/v3/visionLocator.js.map +1 -0
- package/dist/v4/actionEngine.d.ts +37 -0
- package/dist/v4/actionEngine.d.ts.map +1 -0
- package/dist/v4/actionEngine.js +194 -0
- package/dist/v4/actionEngine.js.map +1 -0
- package/dist/v4/actionSpecs.d.ts +35 -0
- package/dist/v4/actionSpecs.d.ts.map +1 -0
- package/dist/v4/actionSpecs.js +354 -0
- package/dist/v4/actionSpecs.js.map +1 -0
- package/dist/v4/capability.d.ts +81 -0
- package/dist/v4/capability.d.ts.map +1 -0
- package/dist/v4/capability.js +346 -0
- package/dist/v4/capability.js.map +1 -0
- package/dist/v4/downloadsPath.d.ts +17 -0
- package/dist/v4/downloadsPath.d.ts.map +1 -0
- package/dist/v4/downloadsPath.js +26 -0
- package/dist/v4/downloadsPath.js.map +1 -0
- package/dist/v4/healCache.d.ts +28 -0
- package/dist/v4/healCache.d.ts.map +1 -0
- package/dist/v4/healCache.js +17 -0
- package/dist/v4/healCache.js.map +1 -0
- package/dist/v4/healPatch.d.ts +22 -0
- package/dist/v4/healPatch.d.ts.map +1 -0
- package/dist/v4/healPatch.js +415 -0
- package/dist/v4/healPatch.js.map +1 -0
- package/dist/v4/helpers/a11yFlatten.d.ts +37 -0
- package/dist/v4/helpers/a11yFlatten.d.ts.map +1 -0
- package/dist/v4/helpers/a11yFlatten.js +569 -0
- package/dist/v4/helpers/a11yFlatten.js.map +1 -0
- package/dist/v4/helpers/apiCalls.d.ts +26 -0
- package/dist/v4/helpers/apiCalls.d.ts.map +1 -0
- package/dist/v4/helpers/apiCalls.js +59 -0
- package/dist/v4/helpers/apiCalls.js.map +1 -0
- package/dist/v4/helpers/assertion.d.ts +26 -0
- package/dist/v4/helpers/assertion.d.ts.map +1 -0
- package/dist/v4/helpers/assertion.js +134 -0
- package/dist/v4/helpers/assertion.js.map +1 -0
- package/dist/v4/helpers/assertionV3.d.ts +70 -0
- package/dist/v4/helpers/assertionV3.d.ts.map +1 -0
- package/dist/v4/helpers/assertionV3.js +400 -0
- package/dist/v4/helpers/assertionV3.js.map +1 -0
- package/dist/v4/helpers/autohealAx.d.ts +41 -0
- package/dist/v4/helpers/autohealAx.d.ts.map +1 -0
- package/dist/v4/helpers/autohealAx.js +148 -0
- package/dist/v4/helpers/autohealAx.js.map +1 -0
- package/dist/v4/helpers/axTree/actionable.d.ts +143 -0
- package/dist/v4/helpers/axTree/actionable.d.ts.map +1 -0
- package/dist/v4/helpers/axTree/actionable.js +404 -0
- package/dist/v4/helpers/axTree/actionable.js.map +1 -0
- package/dist/v4/helpers/axTree/captureAxTree.d.ts +21 -0
- package/dist/v4/helpers/axTree/captureAxTree.d.ts.map +1 -0
- package/dist/v4/helpers/axTree/captureAxTree.js +15 -0
- package/dist/v4/helpers/axTree/captureAxTree.js.map +1 -0
- package/dist/v4/helpers/axTree/captureFrameForest.d.ts +52 -0
- package/dist/v4/helpers/axTree/captureFrameForest.d.ts.map +1 -0
- package/dist/v4/helpers/axTree/captureFrameForest.js +475 -0
- package/dist/v4/helpers/axTree/captureFrameForest.js.map +1 -0
- package/dist/v4/helpers/axTree/index.d.ts +10 -0
- package/dist/v4/helpers/axTree/index.d.ts.map +1 -0
- package/dist/v4/helpers/axTree/index.js +8 -0
- package/dist/v4/helpers/axTree/index.js.map +1 -0
- package/dist/v4/helpers/axTree/serializeAxTree.d.ts +106 -0
- package/dist/v4/helpers/axTree/serializeAxTree.d.ts.map +1 -0
- package/dist/v4/helpers/axTree/serializeAxTree.js +238 -0
- package/dist/v4/helpers/axTree/serializeAxTree.js.map +1 -0
- package/dist/v4/helpers/clipboard-intercept.d.ts +5 -0
- package/dist/v4/helpers/clipboard-intercept.d.ts.map +1 -0
- package/dist/v4/helpers/clipboard-intercept.js +149 -0
- package/dist/v4/helpers/clipboard-intercept.js.map +1 -0
- package/dist/v4/helpers/clipboard.d.ts +27 -0
- package/dist/v4/helpers/clipboard.d.ts.map +1 -0
- package/dist/v4/helpers/clipboard.js +70 -0
- package/dist/v4/helpers/clipboard.js.map +1 -0
- package/dist/v4/helpers/condition.d.ts +100 -0
- package/dist/v4/helpers/condition.d.ts.map +1 -0
- package/dist/v4/helpers/condition.js +356 -0
- package/dist/v4/helpers/condition.js.map +1 -0
- package/dist/v4/helpers/cookies.d.ts +12 -0
- package/dist/v4/helpers/cookies.d.ts.map +1 -0
- package/dist/v4/helpers/cookies.js +66 -0
- package/dist/v4/helpers/cookies.js.map +1 -0
- package/dist/v4/helpers/coordinateResolver.d.ts +29 -0
- package/dist/v4/helpers/coordinateResolver.d.ts.map +1 -0
- package/dist/v4/helpers/coordinateResolver.js +118 -0
- package/dist/v4/helpers/coordinateResolver.js.map +1 -0
- package/dist/v4/helpers/credits.d.ts +19 -0
- package/dist/v4/helpers/credits.d.ts.map +1 -0
- package/dist/v4/helpers/credits.js +52 -0
- package/dist/v4/helpers/credits.js.map +1 -0
- package/dist/v4/helpers/derive.d.ts +27 -0
- package/dist/v4/helpers/derive.d.ts.map +1 -0
- package/dist/v4/helpers/derive.js +87 -0
- package/dist/v4/helpers/derive.js.map +1 -0
- package/dist/v4/helpers/devtools.d.ts +39 -0
- package/dist/v4/helpers/devtools.d.ts.map +1 -0
- package/dist/v4/helpers/devtools.js +1215 -0
- package/dist/v4/helpers/devtools.js.map +1 -0
- package/dist/v4/helpers/dialog.d.ts +29 -0
- package/dist/v4/helpers/dialog.d.ts.map +1 -0
- package/dist/v4/helpers/dialog.js +35 -0
- package/dist/v4/helpers/dialog.js.map +1 -0
- package/dist/v4/helpers/drag.d.ts +38 -0
- package/dist/v4/helpers/drag.d.ts.map +1 -0
- package/dist/v4/helpers/drag.js +245 -0
- package/dist/v4/helpers/drag.js.map +1 -0
- package/dist/v4/helpers/evaluation/colors.d.ts +2 -0
- package/dist/v4/helpers/evaluation/colors.d.ts.map +1 -0
- package/dist/v4/helpers/evaluation/colors.js +151 -0
- package/dist/v4/helpers/evaluation/colors.js.map +1 -0
- package/dist/v4/helpers/evaluation/evaluate.d.ts +10 -0
- package/dist/v4/helpers/evaluation/evaluate.d.ts.map +1 -0
- package/dist/v4/helpers/evaluation/evaluate.js +423 -0
- package/dist/v4/helpers/evaluation/evaluate.js.map +1 -0
- package/dist/v4/helpers/executeApi.d.ts +63 -0
- package/dist/v4/helpers/executeApi.d.ts.map +1 -0
- package/dist/v4/helpers/executeApi.js +363 -0
- package/dist/v4/helpers/executeApi.js.map +1 -0
- package/dist/v4/helpers/executeDb.d.ts +11 -0
- package/dist/v4/helpers/executeDb.d.ts.map +1 -0
- package/dist/v4/helpers/executeDb.js +54 -0
- package/dist/v4/helpers/executeDb.js.map +1 -0
- package/dist/v4/helpers/executeJs.d.ts +16 -0
- package/dist/v4/helpers/executeJs.d.ts.map +1 -0
- package/dist/v4/helpers/executeJs.js +86 -0
- package/dist/v4/helpers/executeJs.js.map +1 -0
- package/dist/v4/helpers/gesture.d.ts +45 -0
- package/dist/v4/helpers/gesture.d.ts.map +1 -0
- package/dist/v4/helpers/gesture.js +131 -0
- package/dist/v4/helpers/gesture.js.map +1 -0
- package/dist/v4/helpers/healCascade.d.ts +39 -0
- package/dist/v4/helpers/healCascade.d.ts.map +1 -0
- package/dist/v4/helpers/healCascade.js +418 -0
- package/dist/v4/helpers/healCascade.js.map +1 -0
- package/dist/v4/helpers/kaneCli.d.ts +18 -0
- package/dist/v4/helpers/kaneCli.d.ts.map +1 -0
- package/dist/v4/helpers/kaneCli.js +319 -0
- package/dist/v4/helpers/kaneCli.js.map +1 -0
- package/dist/v4/helpers/loop.d.ts +4 -0
- package/dist/v4/helpers/loop.d.ts.map +1 -0
- package/dist/v4/helpers/loop.js +4 -0
- package/dist/v4/helpers/loop.js.map +1 -0
- package/dist/v4/helpers/math.d.ts +19 -0
- package/dist/v4/helpers/math.d.ts.map +1 -0
- package/dist/v4/helpers/math.js +117 -0
- package/dist/v4/helpers/math.js.map +1 -0
- package/dist/v4/helpers/network.d.ts +27 -0
- package/dist/v4/helpers/network.d.ts.map +1 -0
- package/dist/v4/helpers/network.js +185 -0
- package/dist/v4/helpers/network.js.map +1 -0
- package/dist/v4/helpers/pageReady.d.ts +27 -0
- package/dist/v4/helpers/pageReady.d.ts.map +1 -0
- package/dist/v4/helpers/pageReady.js +69 -0
- package/dist/v4/helpers/pageReady.js.map +1 -0
- package/dist/v4/helpers/png.d.ts +3 -0
- package/dist/v4/helpers/png.d.ts.map +1 -0
- package/dist/v4/helpers/png.js +18 -0
- package/dist/v4/helpers/png.js.map +1 -0
- package/dist/v4/helpers/queryResult.d.ts +13 -0
- package/dist/v4/helpers/queryResult.d.ts.map +1 -0
- package/dist/v4/helpers/queryResult.js +27 -0
- package/dist/v4/helpers/queryResult.js.map +1 -0
- package/dist/v4/helpers/runtimeSnapshot.d.ts +37 -0
- package/dist/v4/helpers/runtimeSnapshot.d.ts.map +1 -0
- package/dist/v4/helpers/runtimeSnapshot.js +101 -0
- package/dist/v4/helpers/runtimeSnapshot.js.map +1 -0
- package/dist/v4/helpers/schemaAssertion.d.ts +12 -0
- package/dist/v4/helpers/schemaAssertion.d.ts.map +1 -0
- package/dist/v4/helpers/schemaAssertion.js +117 -0
- package/dist/v4/helpers/schemaAssertion.js.map +1 -0
- package/dist/v4/helpers/screenshot.d.ts +40 -0
- package/dist/v4/helpers/screenshot.d.ts.map +1 -0
- package/dist/v4/helpers/screenshot.js +82 -0
- package/dist/v4/helpers/screenshot.js.map +1 -0
- package/dist/v4/helpers/scrollUntil.d.ts +13 -0
- package/dist/v4/helpers/scrollUntil.d.ts.map +1 -0
- package/dist/v4/helpers/scrollUntil.js +90 -0
- package/dist/v4/helpers/scrollUntil.js.map +1 -0
- package/dist/v4/helpers/smartui.d.ts +9 -0
- package/dist/v4/helpers/smartui.d.ts.map +1 -0
- package/dist/v4/helpers/smartui.js +77 -0
- package/dist/v4/helpers/smartui.js.map +1 -0
- package/dist/v4/helpers/sseParser.d.ts +34 -0
- package/dist/v4/helpers/sseParser.d.ts.map +1 -0
- package/dist/v4/helpers/sseParser.js +128 -0
- package/dist/v4/helpers/sseParser.js.map +1 -0
- package/dist/v4/helpers/tabs.d.ts +32 -0
- package/dist/v4/helpers/tabs.d.ts.map +1 -0
- package/dist/v4/helpers/tabs.js +89 -0
- package/dist/v4/helpers/tabs.js.map +1 -0
- package/dist/v4/helpers/text.d.ts +15 -0
- package/dist/v4/helpers/text.d.ts.map +1 -0
- package/dist/v4/helpers/text.js +24 -0
- package/dist/v4/helpers/text.js.map +1 -0
- package/dist/v4/helpers/textNormalize.d.ts +18 -0
- package/dist/v4/helpers/textNormalize.d.ts.map +1 -0
- package/dist/v4/helpers/textNormalize.js +39 -0
- package/dist/v4/helpers/textNormalize.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/domStructured.d.ts +44 -0
- package/dist/v4/helpers/textualAnalyzer/domStructured.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/domStructured.js +242 -0
- package/dist/v4/helpers/textualAnalyzer/domStructured.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/evaluate.d.ts +14 -0
- package/dist/v4/helpers/textualAnalyzer/evaluate.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/evaluate.js +5 -0
- package/dist/v4/helpers/textualAnalyzer/evaluate.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/extractor.d.ts +21 -0
- package/dist/v4/helpers/textualAnalyzer/extractor.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/extractor.js +38 -0
- package/dist/v4/helpers/textualAnalyzer/extractor.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/heal.d.ts +25 -0
- package/dist/v4/helpers/textualAnalyzer/heal.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/heal.js +120 -0
- package/dist/v4/helpers/textualAnalyzer/heal.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/index.d.ts +29 -0
- package/dist/v4/helpers/textualAnalyzer/index.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/index.js +60 -0
- package/dist/v4/helpers/textualAnalyzer/index.js.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.d.ts +47 -0
- package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +1 -0
- package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.js +224 -0
- package/dist/v4/helpers/textualAnalyzer/locatorEnrichment.js.map +1 -0
- package/dist/v4/helpers/vision.d.ts.map +1 -0
- package/dist/v4/helpers/vision.js +487 -0
- package/dist/v4/helpers/vision.js.map +1 -0
- package/dist/v4/helpers/wait.d.ts +16 -0
- package/dist/v4/helpers/wait.d.ts.map +1 -0
- package/dist/v4/helpers/wait.js +48 -0
- package/dist/v4/helpers/wait.js.map +1 -0
- package/dist/v4/http.d.ts +14 -0
- package/dist/v4/http.d.ts.map +1 -0
- package/dist/v4/http.js +45 -0
- package/dist/v4/http.js.map +1 -0
- package/dist/v4/httpClient.d.ts +18 -0
- package/dist/v4/httpClient.d.ts.map +1 -0
- package/dist/v4/httpClient.js +140 -0
- package/dist/v4/httpClient.js.map +1 -0
- package/dist/v4/index.d.ts +40 -0
- package/dist/v4/index.d.ts.map +1 -0
- package/dist/v4/index.js +41 -0
- package/dist/v4/index.js.map +1 -0
- package/dist/v4/rankedLocator.d.ts +27 -0
- package/dist/v4/rankedLocator.d.ts.map +1 -0
- package/dist/v4/rankedLocator.js +85 -0
- package/dist/v4/rankedLocator.js.map +1 -0
- package/dist/v4/relayProxy.d.ts +46 -0
- package/dist/v4/relayProxy.d.ts.map +1 -0
- package/dist/v4/relayProxy.js +485 -0
- package/dist/v4/relayProxy.js.map +1 -0
- package/dist/v4/reporters/index.d.ts +33 -0
- package/dist/v4/reporters/index.d.ts.map +1 -0
- package/dist/v4/reporters/index.js +7 -0
- package/dist/v4/reporters/index.js.map +1 -0
- package/dist/v4/reporters/local.d.ts +13 -0
- package/dist/v4/reporters/local.d.ts.map +1 -0
- package/dist/v4/reporters/local.js +40 -0
- package/dist/v4/reporters/local.js.map +1 -0
- package/dist/v4/reporters/lt.d.ts +28 -0
- package/dist/v4/reporters/lt.d.ts.map +1 -0
- package/dist/v4/reporters/lt.js +110 -0
- package/dist/v4/reporters/lt.js.map +1 -0
- package/dist/v4/reporters/null.d.ts +11 -0
- package/dist/v4/reporters/null.d.ts.map +1 -0
- package/dist/v4/reporters/null.js +10 -0
- package/dist/v4/reporters/null.js.map +1 -0
- package/dist/v4/routeFailure.d.ts +9 -0
- package/dist/v4/routeFailure.d.ts.map +1 -0
- package/dist/v4/routeFailure.js +34 -0
- package/dist/v4/routeFailure.js.map +1 -0
- package/dist/v4/session.d.ts +22 -0
- package/dist/v4/session.d.ts.map +1 -0
- package/dist/v4/session.js +312 -0
- package/dist/v4/session.js.map +1 -0
- package/dist/v4/step.d.ts +53 -0
- package/dist/v4/step.d.ts.map +1 -0
- package/dist/v4/step.js +95 -0
- package/dist/v4/step.js.map +1 -0
- package/dist/v4/stepVariables.d.ts +15 -0
- package/dist/v4/stepVariables.d.ts.map +1 -0
- package/dist/v4/stepVariables.js +61 -0
- package/dist/v4/stepVariables.js.map +1 -0
- package/dist/v4/test.d.ts +10 -0
- package/dist/v4/test.d.ts.map +1 -0
- package/dist/v4/test.js +5 -0
- package/dist/v4/test.js.map +1 -0
- package/dist/v4/testConfig.d.ts +12 -0
- package/dist/v4/testConfig.d.ts.map +1 -0
- package/dist/v4/testConfig.js +89 -0
- package/dist/v4/testConfig.js.map +1 -0
- package/dist/v4/testState.d.ts +10 -0
- package/dist/v4/testState.d.ts.map +1 -0
- package/dist/v4/testState.js +16 -0
- package/dist/v4/testState.js.map +1 -0
- package/dist/v4/vars.d.ts +84 -0
- package/dist/v4/vars.d.ts.map +1 -0
- package/dist/v4/vars.js +912 -0
- package/dist/v4/vars.js.map +1 -0
- package/dist/v4/visionLocator.d.ts +53 -0
- package/dist/v4/visionLocator.d.ts.map +1 -0
- package/dist/v4/visionLocator.js +117 -0
- package/dist/v4/visionLocator.js.map +1 -0
- package/package.json +1 -1
- package/dist/actionEngine.d.ts.map +0 -1
- package/dist/actionEngine.js +0 -194
- package/dist/actionEngine.js.map +0 -1
- package/dist/actionSpecs.d.ts.map +0 -1
- package/dist/actionSpecs.js +0 -354
- package/dist/actionSpecs.js.map +0 -1
- package/dist/capability.d.ts.map +0 -1
- package/dist/capability.js +0 -346
- package/dist/capability.js.map +0 -1
- package/dist/downloadsPath.d.ts.map +0 -1
- package/dist/downloadsPath.js.map +0 -1
- package/dist/healCache.d.ts.map +0 -1
- package/dist/healCache.js.map +0 -1
- package/dist/healPatch.d.ts +0 -20
- package/dist/healPatch.d.ts.map +0 -1
- package/dist/healPatch.js +0 -429
- package/dist/healPatch.js.map +0 -1
- package/dist/helpers/a11yFlatten.d.ts.map +0 -1
- package/dist/helpers/a11yFlatten.js +0 -569
- package/dist/helpers/a11yFlatten.js.map +0 -1
- package/dist/helpers/apiCalls.d.ts.map +0 -1
- package/dist/helpers/apiCalls.js +0 -59
- package/dist/helpers/apiCalls.js.map +0 -1
- package/dist/helpers/assertion.d.ts.map +0 -1
- package/dist/helpers/assertion.js +0 -152
- package/dist/helpers/assertion.js.map +0 -1
- package/dist/helpers/assertionV3.d.ts.map +0 -1
- package/dist/helpers/assertionV3.js.map +0 -1
- package/dist/helpers/autohealAx.d.ts.map +0 -1
- package/dist/helpers/autohealAx.js +0 -148
- package/dist/helpers/autohealAx.js.map +0 -1
- package/dist/helpers/axTree/actionable.d.ts.map +0 -1
- package/dist/helpers/axTree/actionable.js +0 -404
- package/dist/helpers/axTree/actionable.js.map +0 -1
- package/dist/helpers/axTree/captureAxTree.d.ts.map +0 -1
- package/dist/helpers/axTree/captureAxTree.js.map +0 -1
- package/dist/helpers/axTree/captureFrameForest.d.ts.map +0 -1
- package/dist/helpers/axTree/captureFrameForest.js +0 -475
- package/dist/helpers/axTree/captureFrameForest.js.map +0 -1
- package/dist/helpers/axTree/index.d.ts.map +0 -1
- package/dist/helpers/axTree/index.js.map +0 -1
- package/dist/helpers/axTree/serializeAxTree.d.ts.map +0 -1
- package/dist/helpers/axTree/serializeAxTree.js.map +0 -1
- package/dist/helpers/clipboard-intercept.d.ts.map +0 -1
- package/dist/helpers/clipboard-intercept.js.map +0 -1
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/condition.d.ts +0 -100
- package/dist/helpers/condition.d.ts.map +0 -1
- package/dist/helpers/condition.js +0 -357
- package/dist/helpers/condition.js.map +0 -1
- package/dist/helpers/cookies.d.ts.map +0 -1
- package/dist/helpers/cookies.js +0 -66
- package/dist/helpers/cookies.js.map +0 -1
- package/dist/helpers/coordinateResolver.d.ts.map +0 -1
- package/dist/helpers/coordinateResolver.js +0 -118
- package/dist/helpers/coordinateResolver.js.map +0 -1
- package/dist/helpers/coordinateResolverRead.d.ts.map +0 -1
- package/dist/helpers/coordinateResolverRead.js +0 -107
- package/dist/helpers/coordinateResolverRead.js.map +0 -1
- package/dist/helpers/credits.d.ts.map +0 -1
- package/dist/helpers/credits.js +0 -52
- package/dist/helpers/credits.js.map +0 -1
- package/dist/helpers/derive.d.ts.map +0 -1
- package/dist/helpers/derive.js +0 -87
- package/dist/helpers/derive.js.map +0 -1
- package/dist/helpers/devtools.d.ts.map +0 -1
- package/dist/helpers/devtools.js +0 -1215
- package/dist/helpers/devtools.js.map +0 -1
- package/dist/helpers/dialog.d.ts.map +0 -1
- package/dist/helpers/dialog.js.map +0 -1
- package/dist/helpers/drag.d.ts.map +0 -1
- package/dist/helpers/drag.js +0 -276
- package/dist/helpers/drag.js.map +0 -1
- package/dist/helpers/evaluation/colors.d.ts.map +0 -1
- package/dist/helpers/evaluation/colors.js.map +0 -1
- package/dist/helpers/evaluation/evaluate.d.ts.map +0 -1
- package/dist/helpers/evaluation/evaluate.js.map +0 -1
- package/dist/helpers/executeApi.d.ts.map +0 -1
- package/dist/helpers/executeApi.js +0 -377
- package/dist/helpers/executeApi.js.map +0 -1
- package/dist/helpers/executeDb.d.ts.map +0 -1
- package/dist/helpers/executeDb.js +0 -54
- package/dist/helpers/executeDb.js.map +0 -1
- package/dist/helpers/executeJs.d.ts.map +0 -1
- package/dist/helpers/executeJs.js +0 -117
- package/dist/helpers/executeJs.js.map +0 -1
- package/dist/helpers/gesture.d.ts.map +0 -1
- package/dist/helpers/gesture.js +0 -131
- package/dist/helpers/gesture.js.map +0 -1
- package/dist/helpers/healCascade.d.ts.map +0 -1
- package/dist/helpers/healCascade.js +0 -418
- package/dist/helpers/healCascade.js.map +0 -1
- package/dist/helpers/iframeA11y.d.ts.map +0 -1
- package/dist/helpers/iframeA11y.js +0 -128
- package/dist/helpers/iframeA11y.js.map +0 -1
- package/dist/helpers/kaneCli.d.ts.map +0 -1
- package/dist/helpers/kaneCli.js +0 -319
- package/dist/helpers/kaneCli.js.map +0 -1
- package/dist/helpers/loop.d.ts +0 -6
- package/dist/helpers/loop.d.ts.map +0 -1
- package/dist/helpers/loop.js +0 -9
- package/dist/helpers/loop.js.map +0 -1
- package/dist/helpers/math.d.ts.map +0 -1
- package/dist/helpers/math.js +0 -152
- package/dist/helpers/math.js.map +0 -1
- package/dist/helpers/network.d.ts.map +0 -1
- package/dist/helpers/network.js +0 -185
- package/dist/helpers/network.js.map +0 -1
- package/dist/helpers/pageReady.d.ts.map +0 -1
- package/dist/helpers/pageReady.js +0 -85
- package/dist/helpers/pageReady.js.map +0 -1
- package/dist/helpers/png.d.ts.map +0 -1
- package/dist/helpers/png.js.map +0 -1
- package/dist/helpers/queryResult.d.ts.map +0 -1
- package/dist/helpers/queryResult.js.map +0 -1
- package/dist/helpers/runtimeSnapshot.d.ts.map +0 -1
- package/dist/helpers/runtimeSnapshot.js +0 -204
- package/dist/helpers/runtimeSnapshot.js.map +0 -1
- package/dist/helpers/schemaAssertion.d.ts.map +0 -1
- package/dist/helpers/schemaAssertion.js +0 -117
- package/dist/helpers/schemaAssertion.js.map +0 -1
- package/dist/helpers/screenshot.d.ts +0 -45
- package/dist/helpers/screenshot.d.ts.map +0 -1
- package/dist/helpers/screenshot.js +0 -90
- package/dist/helpers/screenshot.js.map +0 -1
- package/dist/helpers/scrollUntil.d.ts.map +0 -1
- package/dist/helpers/scrollUntil.js +0 -90
- package/dist/helpers/scrollUntil.js.map +0 -1
- package/dist/helpers/smartui.d.ts.map +0 -1
- package/dist/helpers/smartui.js +0 -77
- package/dist/helpers/smartui.js.map +0 -1
- package/dist/helpers/sseParser.d.ts.map +0 -1
- package/dist/helpers/sseParser.js.map +0 -1
- package/dist/helpers/tabs.d.ts +0 -44
- package/dist/helpers/tabs.d.ts.map +0 -1
- package/dist/helpers/tabs.js +0 -270
- package/dist/helpers/tabs.js.map +0 -1
- package/dist/helpers/text.d.ts.map +0 -1
- package/dist/helpers/text.js.map +0 -1
- package/dist/helpers/textNormalize.d.ts.map +0 -1
- package/dist/helpers/textNormalize.js.map +0 -1
- package/dist/helpers/textualAnalyzer/domStructured.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/domStructured.js +0 -242
- package/dist/helpers/textualAnalyzer/domStructured.js.map +0 -1
- package/dist/helpers/textualAnalyzer/evaluate.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/evaluate.js.map +0 -1
- package/dist/helpers/textualAnalyzer/extractor.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/extractor.js.map +0 -1
- package/dist/helpers/textualAnalyzer/heal.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/heal.js +0 -120
- package/dist/helpers/textualAnalyzer/heal.js.map +0 -1
- package/dist/helpers/textualAnalyzer/index.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/index.js +0 -60
- package/dist/helpers/textualAnalyzer/index.js.map +0 -1
- package/dist/helpers/textualAnalyzer/locatorEnrichment.d.ts.map +0 -1
- package/dist/helpers/textualAnalyzer/locatorEnrichment.js +0 -224
- package/dist/helpers/textualAnalyzer/locatorEnrichment.js.map +0 -1
- package/dist/helpers/textualRead.d.ts.map +0 -1
- package/dist/helpers/textualRead.js.map +0 -1
- package/dist/helpers/vision.d.ts.map +0 -1
- package/dist/helpers/vision.js +0 -498
- package/dist/helpers/vision.js.map +0 -1
- package/dist/helpers/visionFence.d.ts.map +0 -1
- package/dist/helpers/visionFence.js.map +0 -1
- package/dist/helpers/visionV3.d.ts +0 -52
- package/dist/helpers/visionV3.d.ts.map +0 -1
- package/dist/helpers/visionV3.js +0 -366
- package/dist/helpers/visionV3.js.map +0 -1
- package/dist/helpers/wait.d.ts.map +0 -1
- package/dist/helpers/wait.js +0 -48
- package/dist/helpers/wait.js.map +0 -1
- package/dist/http.d.ts.map +0 -1
- package/dist/http.js +0 -45
- package/dist/http.js.map +0 -1
- package/dist/httpClient.d.ts.map +0 -1
- package/dist/httpClient.js.map +0 -1
- package/dist/rankedLocator.d.ts.map +0 -1
- package/dist/rankedLocator.js +0 -85
- package/dist/rankedLocator.js.map +0 -1
- package/dist/relayProxy.d.ts.map +0 -1
- package/dist/relayProxy.js +0 -485
- package/dist/relayProxy.js.map +0 -1
- package/dist/reporters/index.d.ts.map +0 -1
- package/dist/reporters/index.js +0 -7
- package/dist/reporters/index.js.map +0 -1
- package/dist/reporters/local.d.ts.map +0 -1
- package/dist/reporters/local.js +0 -40
- package/dist/reporters/local.js.map +0 -1
- package/dist/reporters/lt.d.ts.map +0 -1
- package/dist/reporters/lt.js +0 -127
- package/dist/reporters/lt.js.map +0 -1
- package/dist/reporters/null.d.ts.map +0 -1
- package/dist/reporters/null.js.map +0 -1
- package/dist/routeFailure.d.ts.map +0 -1
- package/dist/routeFailure.js +0 -34
- package/dist/routeFailure.js.map +0 -1
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -312
- package/dist/session.js.map +0 -1
- package/dist/step.d.ts.map +0 -1
- package/dist/step.js +0 -112
- package/dist/step.js.map +0 -1
- package/dist/stepVariables.d.ts.map +0 -1
- package/dist/stepVariables.js +0 -61
- package/dist/stepVariables.js.map +0 -1
- package/dist/test.d.ts.map +0 -1
- package/dist/test.js.map +0 -1
- package/dist/testConfig.d.ts.map +0 -1
- package/dist/testConfig.js.map +0 -1
- package/dist/testState.d.ts.map +0 -1
- package/dist/testState.js.map +0 -1
- package/dist/vars.d.ts +0 -78
- package/dist/vars.d.ts.map +0 -1
- package/dist/vars.js +0 -912
- package/dist/vars.js.map +0 -1
- package/dist/visionLocator.d.ts.map +0 -1
- package/dist/visionLocator.js +0 -117
- package/dist/visionLocator.js.map +0 -1
- /package/dist/{actionEngine.d.ts → v3/actionEngine.d.ts} +0 -0
- /package/dist/{actionSpecs.d.ts → v3/actionSpecs.d.ts} +0 -0
- /package/dist/{capability.d.ts → v3/capability.d.ts} +0 -0
- /package/dist/{downloadsPath.d.ts → v3/downloadsPath.d.ts} +0 -0
- /package/dist/{downloadsPath.js → v3/downloadsPath.js} +0 -0
- /package/dist/{healCache.d.ts → v3/healCache.d.ts} +0 -0
- /package/dist/{healCache.js → v3/healCache.js} +0 -0
- /package/dist/{helpers → v3/helpers}/a11yFlatten.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/apiCalls.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/assertion.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/assertionV3.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/assertionV3.js +0 -0
- /package/dist/{helpers → v3/helpers}/autohealAx.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/actionable.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/captureAxTree.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/captureAxTree.js +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/captureFrameForest.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/index.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/index.js +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/serializeAxTree.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/axTree/serializeAxTree.js +0 -0
- /package/dist/{helpers → v3/helpers}/clipboard-intercept.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/clipboard-intercept.js +0 -0
- /package/dist/{helpers → v3/helpers}/clipboard.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/clipboard.js +0 -0
- /package/dist/{helpers → v3/helpers}/cookies.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/coordinateResolver.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/coordinateResolverRead.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/credits.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/derive.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/devtools.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/dialog.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/dialog.js +0 -0
- /package/dist/{helpers → v3/helpers}/drag.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/evaluation/colors.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/evaluation/colors.js +0 -0
- /package/dist/{helpers → v3/helpers}/evaluation/evaluate.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/evaluation/evaluate.js +0 -0
- /package/dist/{helpers → v3/helpers}/executeApi.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/executeDb.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/executeJs.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/gesture.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/healCascade.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/iframeA11y.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/kaneCli.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/math.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/network.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/pageReady.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/png.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/png.js +0 -0
- /package/dist/{helpers → v3/helpers}/queryResult.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/queryResult.js +0 -0
- /package/dist/{helpers → v3/helpers}/runtimeSnapshot.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/schemaAssertion.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/scrollUntil.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/smartui.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/sseParser.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/sseParser.js +0 -0
- /package/dist/{helpers → v3/helpers}/text.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/text.js +0 -0
- /package/dist/{helpers → v3/helpers}/textNormalize.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textNormalize.js +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/domStructured.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/evaluate.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/evaluate.js +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/extractor.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/extractor.js +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/heal.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/index.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualAnalyzer/locatorEnrichment.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualRead.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/textualRead.js +0 -0
- /package/dist/{helpers → v3/helpers}/visionFence.d.ts +0 -0
- /package/dist/{helpers → v3/helpers}/visionFence.js +0 -0
- /package/dist/{helpers → v3/helpers}/wait.d.ts +0 -0
- /package/dist/{http.d.ts → v3/http.d.ts} +0 -0
- /package/dist/{httpClient.d.ts → v3/httpClient.d.ts} +0 -0
- /package/dist/{httpClient.js → v3/httpClient.js} +0 -0
- /package/dist/{rankedLocator.d.ts → v3/rankedLocator.d.ts} +0 -0
- /package/dist/{relayProxy.d.ts → v3/relayProxy.d.ts} +0 -0
- /package/dist/{reporters → v3/reporters}/index.d.ts +0 -0
- /package/dist/{reporters → v3/reporters}/local.d.ts +0 -0
- /package/dist/{reporters → v3/reporters}/lt.d.ts +0 -0
- /package/dist/{reporters → v3/reporters}/null.d.ts +0 -0
- /package/dist/{reporters → v3/reporters}/null.js +0 -0
- /package/dist/{routeFailure.d.ts → v3/routeFailure.d.ts} +0 -0
- /package/dist/{session.d.ts → v3/session.d.ts} +0 -0
- /package/dist/{step.d.ts → v3/step.d.ts} +0 -0
- /package/dist/{stepVariables.d.ts → v3/stepVariables.d.ts} +0 -0
- /package/dist/{test.d.ts → v3/test.d.ts} +0 -0
- /package/dist/{test.js → v3/test.js} +0 -0
- /package/dist/{testConfig.d.ts → v3/testConfig.d.ts} +0 -0
- /package/dist/{testConfig.js → v3/testConfig.js} +0 -0
- /package/dist/{testState.d.ts → v3/testState.d.ts} +0 -0
- /package/dist/{testState.js → v3/testState.js} +0 -0
- /package/dist/{visionLocator.d.ts → v3/visionLocator.d.ts} +0 -0
- /package/dist/{helpers → v4/helpers}/vision.d.ts +0 -0
package/README.md
CHANGED
|
@@ -34,6 +34,34 @@ testmu.test("Login flow", async (page) => {
|
|
|
34
34
|
testmu.run();
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Runtime modes (`kaneVersion`)
|
|
38
|
+
|
|
39
|
+
Generated tests pick a runtime mode with `testmu.configure({ kaneVersion })`:
|
|
40
|
+
`'v4'` (the default) or `'v3'`. Every public name (`testmu.executeJs`,
|
|
41
|
+
`resolveVar`, `Condition`, …) follows the mode **at call time**, so a name
|
|
42
|
+
imported before `configure()` runs still does the right thing.
|
|
43
|
+
|
|
44
|
+
### Package layout (for contributors)
|
|
45
|
+
|
|
46
|
+
The two modes live in separate implementation folders behind a small shared
|
|
47
|
+
layer, so a change to one mode can't change the other:
|
|
48
|
+
|
|
49
|
+
| Path | What |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `src/index.ts` | public surface: shared names + per-mode forwarders |
|
|
52
|
+
| `src/router.ts` | picks the mode's implementation on each call; fills the active mode's variable stores on `configure()`; installs the Locator heal patch once |
|
|
53
|
+
| `src/configure.ts`, `config.ts`, `errors.ts`, `log.ts`, `loadEnv.ts` | shared: one of each whatever the mode |
|
|
54
|
+
| `src/v4/` | the v4 implementation |
|
|
55
|
+
| `src/v3/` | the v3 implementation |
|
|
56
|
+
|
|
57
|
+
`src/v4/` and `src/v3/` never import each other; each imports only itself and
|
|
58
|
+
the shared modules. A change for one mode goes in that mode's folder only; a
|
|
59
|
+
fix both modes need is made in both. Tests follow the same split: `tests/v4/`,
|
|
60
|
+
`tests/v3/` (where v3 is the default mode, see `tests/setup.ts`) and
|
|
61
|
+
`tests/shared/` (public surface, routing). The public types are v4's.
|
|
62
|
+
Only the package root is importable (the `exports` map), so moving internal
|
|
63
|
+
files never breaks consumers.
|
|
64
|
+
|
|
37
65
|
## Env vars
|
|
38
66
|
|
|
39
67
|
| Var | Purpose |
|
package/dist/configure.d.ts
CHANGED
|
@@ -66,6 +66,9 @@ export declare function _registerConfigureHook(hook: ConfigureHook): void;
|
|
|
66
66
|
export declare function configure(opts: ConfigureOptions): void;
|
|
67
67
|
export declare function get<K extends ConfigKey>(key: K): (typeof DEFAULTS)[K];
|
|
68
68
|
export declare function wasSet(key: ConfigKey): boolean;
|
|
69
|
+
/** Test-only: change a default and the live value (tests/v3 make 'v3' the
|
|
70
|
+
* default mode, so `_reset()` keeps it). Returns a restore function. */
|
|
71
|
+
export declare function _setDefaultForTesting<K extends ConfigKey>(key: K, value: (typeof DEFAULTS)[K]): () => void;
|
|
69
72
|
/** True when the generated test opted into V3 behaviour. Gates the V3 heal/vision paths. */
|
|
70
73
|
export declare function isV3(): boolean;
|
|
71
74
|
export declare function _reset(): void;
|
package/dist/configure.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC;;;;kFAI8E;IAC9E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;2CAIuC;IACvC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC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ACxE,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,SAAS,EACvD,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,GAClC,MAAM,IAAI,CAKZ;AAED,4FAA4F;AAC5F,wBAAgB,IAAI,IAAI,OAAO,CAE9B;AAED,wBAAgB,MAAM,IAAI,IAAI,CAU7B;AAID;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
|
package/dist/configure.js
CHANGED
|
@@ -57,6 +57,14 @@ export function get(key) {
|
|
|
57
57
|
export function wasSet(key) {
|
|
58
58
|
return setKeys.has(key);
|
|
59
59
|
}
|
|
60
|
+
/** Test-only: change a default and the live value (tests/v3 make 'v3' the
|
|
61
|
+
* default mode, so `_reset()` keeps it). Returns a restore function. */
|
|
62
|
+
export function _setDefaultForTesting(key, value) {
|
|
63
|
+
const before = DEFAULTS[key];
|
|
64
|
+
DEFAULTS[key] = value;
|
|
65
|
+
data[key] = value;
|
|
66
|
+
return () => { DEFAULTS[key] = before; data[key] = before; };
|
|
67
|
+
}
|
|
60
68
|
/** True when the generated test opted into V3 behaviour. Gates the V3 heal/vision paths. */
|
|
61
69
|
export function isV3() {
|
|
62
70
|
return get('kaneVersion') === 'v3';
|
package/dist/configure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure.js","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AA8D/B,MAAM,QAAQ,GAA+B;IAC3C,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,EAAE;IACZ,qBAAqB,EAAE,IAAI;IAC3B,yBAAyB,EAAE,KAAK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,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;YAAG,IAAmC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;;YAC3F,IAAmC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACvD,CAAC;IACD,OAAO,CAAC,KAAK,EAAE,CAAC;IAChB,uFAAuF;IACvF,4FAA4F;AAC9F,CAAC;AAED,MAAM,cAAc,GAAG,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,cAAc,CAAC;AACzD,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -25,4 +25,10 @@ export declare class AssertionFailureError extends Error {
|
|
|
25
25
|
readonly result: unknown;
|
|
26
26
|
constructor(message: string, result?: unknown);
|
|
27
27
|
}
|
|
28
|
+
/** Thrown by emitted code when a v4 while loop exhausts max iterations with
|
|
29
|
+
* `on_exhaust="error"`. Shared (not per mode) so `instanceof LoopExhausted`
|
|
30
|
+
* holds whichever implementation threw it; helpers/loop.ts re-exports it. */
|
|
31
|
+
export declare class LoopExhausted extends Error {
|
|
32
|
+
constructor(message: string);
|
|
33
|
+
}
|
|
28
34
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAK5B;AAED;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;gBACf,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;CAOjD;AAED,6EAA6E;AAC7E,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;gBACb,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAM9C"}
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAK5B;AAED;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;gBACf,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;CAOjD;AAED,6EAA6E;AAC7E,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;gBACb,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAM9C;AAED;;6EAE6E;AAC7E,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAI5B"}
|
package/dist/errors.js
CHANGED
|
@@ -43,4 +43,13 @@ export class AssertionFailureError extends Error {
|
|
|
43
43
|
Object.setPrototypeOf(this, AssertionFailureError.prototype);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
/** Thrown by emitted code when a v4 while loop exhausts max iterations with
|
|
47
|
+
* `on_exhaust="error"`. Shared (not per mode) so `instanceof LoopExhausted`
|
|
48
|
+
* holds whichever implementation threw it; helpers/loop.ts re-exports it. */
|
|
49
|
+
export class LoopExhausted extends Error {
|
|
50
|
+
constructor(message) {
|
|
51
|
+
super(message);
|
|
52
|
+
this.name = 'LoopExhausted';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
46
55
|
//# sourceMappingURL=errors.js.map
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IACxC,SAAS,CAAS;IAClB,QAAQ,CAAU;IAC3B,YAAY,SAAiB,EAAE,QAAiB;QAC9C,KAAK,CAAC,sCAAsC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC9F,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;CACF;AAED,6EAA6E;AAC7E,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IACrC,MAAM,CAAU;IACzB,YAAY,OAAe,EAAE,MAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC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CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF;AAED;;6EAE6E;AAC7E,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,110 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface. `configure` and the error classes are shared; every other
|
|
3
|
+
* name is served by the implementation `configure({ kaneVersion })` selects,
|
|
4
|
+
* on each call (see router.ts), so names imported before `configure()` runs
|
|
5
|
+
* still follow the mode.
|
|
6
|
+
*/
|
|
1
7
|
import { configure } from './configure.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { visionQuery, textualQuery, visionWait, visionAction, getVisionCoordinates } from './helpers/vision.js';
|
|
20
|
-
import { textualAnalyzer } from './helpers/textualAnalyzer/index.js';
|
|
21
|
-
import { derive, conditionCompute } from './helpers/derive.js';
|
|
22
|
-
import { verifyAssertion, evaluateBranch } from './helpers/assertion.js';
|
|
23
|
-
import { verifySchemaAssertion } from './helpers/schemaAssertion.js';
|
|
24
|
-
import { LoopExhausted } from './helpers/loop.js';
|
|
25
|
-
import { evaluateNetworkAssertion, networkQuery } from './helpers/network.js';
|
|
26
|
-
import { evaluateMath } from './helpers/math.js';
|
|
27
|
-
import { smartuiSnapshot } from './helpers/smartui.js';
|
|
28
|
-
import { switchTab } from './helpers/tabs.js';
|
|
29
|
-
import { clickDrag } from './helpers/drag.js';
|
|
30
|
-
import { checkUntilCondition } from './helpers/wait.js';
|
|
31
|
-
import { asText } from './helpers/text.js';
|
|
32
|
-
import { Condition, ResolvedCondition, PossibleCondition, ConcatenationOperator } from './helpers/condition.js';
|
|
33
|
-
import { executeKaneCli } from './helpers/kaneCli.js';
|
|
34
|
-
import { downloadsPath } from './downloadsPath.js';
|
|
35
|
-
import { devtoolsNetworkQuery, devtoolsConsoleQuery, devtoolsCookiesQuery, devtoolsStorageQuery, clipboardWrite, clipboardPaste, clipboardClear, devtoolsClipboardQuery, devtoolsPerformanceQuery } from './helpers/devtools.js';
|
|
36
|
-
import { apiCallsQuery } from './helpers/apiCalls.js';
|
|
8
|
+
import { TestmuConfigError, AssertionFailureError, AutohealExhausted, ConditionEvaluationError, LoopExhausted } from './errors.js';
|
|
9
|
+
import { type Impl } from './router.js';
|
|
10
|
+
declare const resolveVar: typeof import("./v4/vars.js").resolveVar;
|
|
11
|
+
declare const setVar: typeof import("./v4/vars.js").setVar;
|
|
12
|
+
declare const getVariableValue: typeof import("./v4/vars.js").getVariableValue;
|
|
13
|
+
declare const VisionLocator: typeof import("./v4/visionLocator.js").VisionLocator;
|
|
14
|
+
declare const ExecuteJsError: typeof import("./v4/index.js").ExecuteJsError;
|
|
15
|
+
declare const Condition: typeof import("./v4/index.js").Condition;
|
|
16
|
+
declare const ResolvedCondition: typeof import("./v4/index.js").ResolvedCondition;
|
|
17
|
+
declare const PossibleCondition: import("./v4/helpers/condition.js").PossibleConditionFactory;
|
|
18
|
+
declare const ConcatenationOperator: import("./v4/helpers/condition.js").ConcatenationOperatorFactory;
|
|
19
|
+
type Condition = InstanceType<Impl['Condition']>;
|
|
20
|
+
type ResolvedCondition = InstanceType<Impl['ResolvedCondition']>;
|
|
21
|
+
type VisionLocator = InstanceType<Impl['VisionLocator']>;
|
|
22
|
+
type ExecuteJsError = InstanceType<Impl['ExecuteJsError']>;
|
|
23
|
+
declare const getApiCallLog: typeof import("./v4/helpers/apiCalls.js").getApiCallLog;
|
|
24
|
+
declare const clearApiCallLog: typeof import("./v4/helpers/apiCalls.js").clearApiCallLog;
|
|
37
25
|
declare const testmu: {
|
|
38
26
|
configure: typeof configure;
|
|
39
|
-
test: typeof test;
|
|
40
|
-
step: typeof step;
|
|
41
|
-
run: typeof run;
|
|
42
|
-
executeJs: typeof executeJs;
|
|
43
|
-
executeApi: typeof executeApi;
|
|
44
|
-
executeDb: typeof executeDb;
|
|
45
|
-
visionQuery: typeof visionQuery;
|
|
46
|
-
textualQuery: typeof textualQuery;
|
|
47
|
-
visionWait: typeof visionWait;
|
|
48
|
-
visionAction: typeof visionAction;
|
|
49
|
-
getVisionCoordinates: typeof getVisionCoordinates;
|
|
50
|
-
textualAnalyzer: typeof textualAnalyzer;
|
|
51
|
-
derive: typeof derive;
|
|
52
|
-
conditionCompute: typeof conditionCompute;
|
|
53
|
-
verifyAssertion: typeof verifyAssertion;
|
|
54
|
-
evaluateBranch: typeof evaluateBranch;
|
|
55
|
-
verifySchemaAssertion: typeof verifySchemaAssertion;
|
|
27
|
+
test: typeof import("./v4/test.js").test;
|
|
28
|
+
step: typeof import("./v4/step.js").step;
|
|
29
|
+
run: typeof import("./v4/session.js").run;
|
|
30
|
+
executeJs: typeof import("./v4/index.js").executeJs;
|
|
31
|
+
executeApi: typeof import("./v4/helpers/executeApi.js").executeApi;
|
|
32
|
+
executeDb: typeof import("./v4/helpers/executeDb.js").executeDb;
|
|
33
|
+
visionQuery: typeof import("./v4/helpers/vision.js").visionQuery;
|
|
34
|
+
textualQuery: typeof import("./v4/helpers/vision.js").textualQuery;
|
|
35
|
+
visionWait: typeof import("./v4/helpers/vision.js").visionWait;
|
|
36
|
+
visionAction: typeof import("./v4/helpers/vision.js").visionAction;
|
|
37
|
+
getVisionCoordinates: typeof import("./v4/helpers/vision.js").getVisionCoordinates;
|
|
38
|
+
textualAnalyzer: typeof import("./v4/helpers/textualAnalyzer/index.js").textualAnalyzer;
|
|
39
|
+
derive: typeof import("./v4/index.js").derive;
|
|
40
|
+
conditionCompute: typeof import("./v4/index.js").conditionCompute;
|
|
41
|
+
verifyAssertion: typeof import("./v4/helpers/assertion.js").verifyAssertion;
|
|
42
|
+
evaluateBranch: typeof import("./v4/helpers/assertion.js").evaluateBranch;
|
|
43
|
+
verifySchemaAssertion: typeof import("./v4/index.js").verifySchemaAssertion;
|
|
56
44
|
LoopExhausted: typeof LoopExhausted;
|
|
57
|
-
evaluateNetworkAssertion: typeof evaluateNetworkAssertion;
|
|
58
|
-
networkQuery: typeof networkQuery;
|
|
59
|
-
evaluateMath: typeof evaluateMath;
|
|
60
|
-
smartuiSnapshot: typeof smartuiSnapshot;
|
|
61
|
-
switchTab: typeof switchTab;
|
|
62
|
-
clickDrag: typeof clickDrag;
|
|
63
|
-
checkUntilCondition: typeof checkUntilCondition;
|
|
64
|
-
executeKaneCli: typeof executeKaneCli;
|
|
65
|
-
asText: typeof asText;
|
|
66
|
-
downloadsPath: typeof downloadsPath;
|
|
67
|
-
devtoolsNetworkQuery: typeof devtoolsNetworkQuery;
|
|
68
|
-
devtoolsConsoleQuery: typeof devtoolsConsoleQuery;
|
|
69
|
-
devtoolsCookiesQuery: typeof devtoolsCookiesQuery;
|
|
70
|
-
devtoolsStorageQuery: typeof devtoolsStorageQuery;
|
|
71
|
-
clipboardWrite: typeof clipboardWrite;
|
|
72
|
-
clipboardPaste: typeof clipboardPaste;
|
|
73
|
-
clipboardClear: typeof clipboardClear;
|
|
74
|
-
devtoolsClipboardQuery: typeof devtoolsClipboardQuery;
|
|
75
|
-
devtoolsPerformanceQuery: typeof devtoolsPerformanceQuery;
|
|
76
|
-
apiCallsQuery: typeof apiCallsQuery;
|
|
77
|
-
routeFailure: typeof routeFailure;
|
|
78
|
-
getCookies: typeof getCookies;
|
|
79
|
-
primeDialog: typeof primeDialog;
|
|
80
|
-
locator: typeof locator;
|
|
81
|
-
resolveRankedLocator: typeof resolveRankedLocator;
|
|
82
|
-
multiClick: typeof multiClick;
|
|
83
|
-
longPress: typeof longPress;
|
|
84
|
-
scrollUntilElement: typeof scrollUntilElement;
|
|
85
|
-
newTab: typeof newTab;
|
|
86
|
-
closeTab: typeof closeTab;
|
|
87
|
-
ensureActivePage: typeof ensureActivePage;
|
|
88
|
-
dragDrop: typeof dragDrop;
|
|
89
|
-
elementDrag: typeof elementDrag;
|
|
45
|
+
evaluateNetworkAssertion: typeof import("./v4/helpers/network.js").evaluateNetworkAssertion;
|
|
46
|
+
networkQuery: typeof import("./v4/helpers/network.js").networkQuery;
|
|
47
|
+
evaluateMath: typeof import("./v4/index.js").evaluateMath;
|
|
48
|
+
smartuiSnapshot: typeof import("./v4/index.js").smartuiSnapshot;
|
|
49
|
+
switchTab: typeof import("./v4/index.js").switchTab;
|
|
50
|
+
clickDrag: typeof import("./v4/index.js").clickDrag;
|
|
51
|
+
checkUntilCondition: typeof import("./v4/index.js").checkUntilCondition;
|
|
52
|
+
executeKaneCli: typeof import("./v4/index.js").executeKaneCli;
|
|
53
|
+
asText: typeof import("./v4/index.js").asText;
|
|
54
|
+
downloadsPath: typeof import("./v4/downloadsPath.js").downloadsPath;
|
|
55
|
+
devtoolsNetworkQuery: typeof import("./v4/index.js").devtoolsNetworkQuery;
|
|
56
|
+
devtoolsConsoleQuery: typeof import("./v4/index.js").devtoolsConsoleQuery;
|
|
57
|
+
devtoolsCookiesQuery: typeof import("./v4/index.js").devtoolsCookiesQuery;
|
|
58
|
+
devtoolsStorageQuery: typeof import("./v4/index.js").devtoolsStorageQuery;
|
|
59
|
+
clipboardWrite: typeof import("./v4/index.js").clipboardWrite;
|
|
60
|
+
clipboardPaste: typeof import("./v4/index.js").clipboardPaste;
|
|
61
|
+
clipboardClear: typeof import("./v4/index.js").clipboardClear;
|
|
62
|
+
devtoolsClipboardQuery: typeof import("./v4/index.js").devtoolsClipboardQuery;
|
|
63
|
+
devtoolsPerformanceQuery: typeof import("./v4/index.js").devtoolsPerformanceQuery;
|
|
64
|
+
apiCallsQuery: typeof import("./v4/helpers/apiCalls.js").apiCallsQuery;
|
|
65
|
+
routeFailure: typeof import("./v4/routeFailure.js").routeFailure;
|
|
66
|
+
getCookies: typeof import("./v4/index.js").getCookies;
|
|
67
|
+
primeDialog: typeof import("./v4/index.js").primeDialog;
|
|
68
|
+
locator: typeof import("./v4/visionLocator.js").locator;
|
|
69
|
+
resolveRankedLocator: typeof import("./v4/rankedLocator.js").resolveRankedLocator;
|
|
70
|
+
multiClick: typeof import("./v4/index.js").multiClick;
|
|
71
|
+
longPress: typeof import("./v4/index.js").longPress;
|
|
72
|
+
scrollUntilElement: typeof import("./v4/index.js").scrollUntilElement;
|
|
73
|
+
newTab: typeof import("./v4/index.js").newTab;
|
|
74
|
+
closeTab: typeof import("./v4/index.js").closeTab;
|
|
75
|
+
ensureActivePage: typeof import("./v4/index.js").ensureActivePage;
|
|
76
|
+
dragDrop: typeof import("./v4/index.js").dragDrop;
|
|
77
|
+
elementDrag: typeof import("./v4/index.js").elementDrag;
|
|
90
78
|
};
|
|
91
79
|
export default testmu;
|
|
92
80
|
export { resolveVar, setVar, TestmuConfigError, AssertionFailureError, AutohealExhausted, ConditionEvaluationError, LoopExhausted, Condition, ResolvedCondition, PossibleCondition, ConcatenationOperator, getVariableValue, VisionLocator, };
|
|
93
|
-
export type { SelectorSpec, VisionLocatorOptions } from './visionLocator.js';
|
|
81
|
+
export type { SelectorSpec, VisionLocatorOptions } from './v4/visionLocator.js';
|
|
94
82
|
export type { ConfigureOptions, GlobalVariable } from './configure.js';
|
|
95
83
|
export type { RunTarget, Config } from './config.js';
|
|
96
|
-
export type { Reporter } from './reporters/index.js';
|
|
97
|
-
export type { TestFn, RegisteredTest } from './test.js';
|
|
98
|
-
export type { ApiRequest, ApiResponse, Authorization } from './helpers/executeApi.js';
|
|
99
|
-
export type { ApiCallEntry } from './helpers/apiCalls.js';
|
|
100
|
-
export { getApiCallLog, clearApiCallLog }
|
|
101
|
-
export type { DbRequest } from './helpers/executeDb.js';
|
|
102
|
-
export type { AssertionTree, AssertionResult, SubCheck } from './helpers/assertion.js';
|
|
103
|
-
export type {
|
|
104
|
-
export type {
|
|
105
|
-
export type {
|
|
106
|
-
export
|
|
107
|
-
export {
|
|
108
|
-
export type {
|
|
109
|
-
export type { ElementBounds, EndStepOpts } from './reporters/index.js';
|
|
84
|
+
export type { Reporter } from './v4/reporters/index.js';
|
|
85
|
+
export type { TestFn, RegisteredTest } from './v4/test.js';
|
|
86
|
+
export type { ApiRequest, ApiResponse, Authorization } from './v4/helpers/executeApi.js';
|
|
87
|
+
export type { ApiCallEntry } from './v4/helpers/apiCalls.js';
|
|
88
|
+
export { getApiCallLog, clearApiCallLog };
|
|
89
|
+
export type { DbRequest } from './v4/helpers/executeDb.js';
|
|
90
|
+
export type { AssertionTree, AssertionResult, SubCheck } from './v4/helpers/assertion.js';
|
|
91
|
+
export type { NetworkNode, NetworkLeaf, NetworkComposite, NetworkQueryOptions } from './v4/helpers/network.js';
|
|
92
|
+
export type { VisionCoordinates } from './v4/helpers/vision.js';
|
|
93
|
+
export type { TextualAnalyzerOptions } from './v4/helpers/textualAnalyzer/index.js';
|
|
94
|
+
export { ExecuteJsError };
|
|
95
|
+
export type { StepOpts, StepState, OnFailure } from './v4/step.js';
|
|
96
|
+
export type { ElementBounds, EndStepOpts } from './v4/reporters/index.js';
|
|
110
97
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,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GAChC,CAAC;AACF,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAChF,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACzF,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAC1C,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1F,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface. `configure` and the error classes are shared; every other
|
|
3
|
+
* name is served by the implementation `configure({ kaneVersion })` selects,
|
|
4
|
+
* on each call (see router.ts), so names imported before `configure()` runs
|
|
5
|
+
* still follow the mode.
|
|
6
|
+
*/
|
|
1
7
|
import { configure } from './configure.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
8
|
+
import { TestmuConfigError, AssertionFailureError, AutohealExhausted, ConditionEvaluationError, LoopExhausted, } from './errors.js';
|
|
9
|
+
import { fn, routed } from './router.js';
|
|
10
|
+
const test = fn('test');
|
|
11
|
+
const step = fn('step');
|
|
12
|
+
const run = fn('run');
|
|
13
|
+
const resolveVar = fn('resolveVar');
|
|
14
|
+
const setVar = fn('setVar');
|
|
15
|
+
const getVariableValue = fn('getVariableValue');
|
|
16
|
+
const routeFailure = fn('routeFailure');
|
|
17
|
+
const getCookies = fn('getCookies');
|
|
18
|
+
const primeDialog = fn('primeDialog');
|
|
19
|
+
const locator = fn('locator');
|
|
20
|
+
const VisionLocator = routed('VisionLocator');
|
|
21
|
+
const resolveRankedLocator = fn('resolveRankedLocator');
|
|
22
|
+
const multiClick = fn('multiClick');
|
|
23
|
+
const longPress = fn('longPress');
|
|
24
|
+
const scrollUntilElement = fn('scrollUntilElement');
|
|
25
|
+
const newTab = fn('newTab');
|
|
26
|
+
const closeTab = fn('closeTab');
|
|
27
|
+
const ensureActivePage = fn('ensureActivePage');
|
|
28
|
+
const dragDrop = fn('dragDrop');
|
|
29
|
+
const elementDrag = fn('elementDrag');
|
|
30
|
+
const executeJs = fn('executeJs');
|
|
31
|
+
const ExecuteJsError = routed('ExecuteJsError');
|
|
32
|
+
const executeApi = fn('executeApi');
|
|
33
|
+
const executeDb = fn('executeDb');
|
|
34
|
+
const visionQuery = fn('visionQuery');
|
|
35
|
+
const textualQuery = fn('textualQuery');
|
|
36
|
+
const visionWait = fn('visionWait');
|
|
37
|
+
const visionAction = fn('visionAction');
|
|
38
|
+
const getVisionCoordinates = fn('getVisionCoordinates');
|
|
39
|
+
const textualAnalyzer = fn('textualAnalyzer');
|
|
40
|
+
const derive = fn('derive');
|
|
41
|
+
const conditionCompute = fn('conditionCompute');
|
|
42
|
+
const verifyAssertion = fn('verifyAssertion');
|
|
43
|
+
const evaluateBranch = fn('evaluateBranch');
|
|
44
|
+
const verifySchemaAssertion = fn('verifySchemaAssertion');
|
|
45
|
+
const evaluateNetworkAssertion = fn('evaluateNetworkAssertion');
|
|
46
|
+
const networkQuery = fn('networkQuery');
|
|
47
|
+
const evaluateMath = fn('evaluateMath');
|
|
48
|
+
const smartuiSnapshot = fn('smartuiSnapshot');
|
|
49
|
+
const switchTab = fn('switchTab');
|
|
50
|
+
const clickDrag = fn('clickDrag');
|
|
51
|
+
const checkUntilCondition = fn('checkUntilCondition');
|
|
52
|
+
const asText = fn('asText');
|
|
53
|
+
const Condition = routed('Condition');
|
|
54
|
+
const ResolvedCondition = routed('ResolvedCondition');
|
|
55
|
+
const PossibleCondition = routed('PossibleCondition');
|
|
56
|
+
const ConcatenationOperator = routed('ConcatenationOperator');
|
|
57
|
+
const executeKaneCli = fn('executeKaneCli');
|
|
58
|
+
const downloadsPath = fn('downloadsPath');
|
|
59
|
+
const devtoolsNetworkQuery = fn('devtoolsNetworkQuery');
|
|
60
|
+
const devtoolsConsoleQuery = fn('devtoolsConsoleQuery');
|
|
61
|
+
const devtoolsCookiesQuery = fn('devtoolsCookiesQuery');
|
|
62
|
+
const devtoolsStorageQuery = fn('devtoolsStorageQuery');
|
|
63
|
+
const clipboardWrite = fn('clipboardWrite');
|
|
64
|
+
const clipboardPaste = fn('clipboardPaste');
|
|
65
|
+
const clipboardClear = fn('clipboardClear');
|
|
66
|
+
const devtoolsClipboardQuery = fn('devtoolsClipboardQuery');
|
|
67
|
+
const devtoolsPerformanceQuery = fn('devtoolsPerformanceQuery');
|
|
68
|
+
const apiCallsQuery = fn('apiCallsQuery');
|
|
69
|
+
const getApiCallLog = fn('getApiCallLog');
|
|
70
|
+
const clearApiCallLog = fn('clearApiCallLog');
|
|
37
71
|
const testmu = {
|
|
38
72
|
configure, test, step, run,
|
|
39
73
|
executeJs, executeApi, executeDb,
|
|
@@ -64,6 +98,6 @@ export default testmu;
|
|
|
64
98
|
export { resolveVar, setVar, TestmuConfigError, AssertionFailureError, AutohealExhausted, ConditionEvaluationError, LoopExhausted,
|
|
65
99
|
// V3 condition family + resolver — the generator emits these bare.
|
|
66
100
|
Condition, ResolvedCondition, PossibleCondition, ConcatenationOperator, getVariableValue, VisionLocator, };
|
|
67
|
-
export { getApiCallLog, clearApiCallLog }
|
|
68
|
-
export { ExecuteJsError }
|
|
101
|
+
export { getApiCallLog, clearApiCallLog };
|
|
102
|
+
export { ExecuteJsError };
|
|
69
103
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EACL,iBAAiB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,wBAAwB,EACrF,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,EAAE,EAAE,MAAM,EAAa,MAAM,aAAa,CAAC;AAEpD,MAAM,IAAI,GAAG,EAAE,CAAC,MAAM,CA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Y,EAAE,eAAe;IAC7B,SAAS,EAAE,SAAS;IACpB,mBAAmB,EAAE,cAAc,EAAE,MAAM;IAC3C,aAAa;IACb,oBAAoB,EAAE,oBAAoB;IAC1C,oBAAoB,EAAE,oBAAoB;IAC1C,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,sBAAsB;IACtE,wBAAwB;IACxB,aAAa;IACb,2EAA2E;IAC3E,YAAY,EAAE,UAAU,EAAE,WAAW;IACrC,OAAO,EAAE,oBAAoB;IAC7B,UAAU,EAAE,SAAS,EAAE,kBAAkB;IACzC,MAAM,EAAE,QAAQ,EAAE,gBAAgB;IAClC,QAAQ,EAAE,WAAW;CACtB,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EACL,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,qBAAqB,EAC5D,iBAAiB,EAAE,wBAAwB,EAC3C,aAAa;AACb,mEAAmE;AACnE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,qBAAqB,EACtE,gBAAgB,EAAE,aAAa,GAChC,CAAC;AAQF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAM1C,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/router.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-call dispatch between the v4 and v3 implementations.
|
|
3
|
+
*
|
|
4
|
+
* `configure({ kaneVersion })` picks the mode ('v4' by default, 'v3' opt-in).
|
|
5
|
+
* Every public name that differs by mode is served by that mode's package
|
|
6
|
+
* (`./v4/index.js` / `./v3/index.js`). The choice happens on EACH call, not at
|
|
7
|
+
* import: generated code imports names before it calls `configure`. So what
|
|
8
|
+
* `index.ts` exports are forwarders:
|
|
9
|
+
*
|
|
10
|
+
* - functions -> a function that calls the mode's function
|
|
11
|
+
* - classes -> a Proxy: `new` builds the mode's class, `instanceof` holds
|
|
12
|
+
* for instances of either mode's class, statics forward
|
|
13
|
+
* - objects -> a Proxy (the callable `PossibleCondition` factory and friends)
|
|
14
|
+
*
|
|
15
|
+
* Shared names (`configure`, the error classes) don't go through here.
|
|
16
|
+
*
|
|
17
|
+
* The router also owns the Locator heal patch: one trampoline per method,
|
|
18
|
+
* installed once, that runs the active mode's wrapper.
|
|
19
|
+
*/
|
|
20
|
+
import type { Page } from 'playwright';
|
|
21
|
+
import * as v4 from './v4/index.js';
|
|
22
|
+
export type Impl = typeof v4;
|
|
23
|
+
export type Mode = 'v3' | 'v4';
|
|
24
|
+
export declare function mode(): Mode;
|
|
25
|
+
/** The implementation for the active mode (read per call). */
|
|
26
|
+
export declare function impl(): Impl;
|
|
27
|
+
/** Every implementation, without duplicates. */
|
|
28
|
+
export declare function impls(): Impl[];
|
|
29
|
+
type AnyFn = (...args: never[]) => unknown;
|
|
30
|
+
type FnKey = {
|
|
31
|
+
[K in keyof Impl]: Impl[K] extends AnyFn ? K : never;
|
|
32
|
+
}[keyof Impl];
|
|
33
|
+
/** A function that calls the active mode's `name`. */
|
|
34
|
+
export declare function fn<K extends FnKey>(name: K): Impl[K];
|
|
35
|
+
/**
|
|
36
|
+
* A Proxy for a per-mode class or callable object. `new` / call / property
|
|
37
|
+
* reads go to the active mode's value; `instanceof` holds for either mode.
|
|
38
|
+
*/
|
|
39
|
+
export declare function routed<K extends keyof Impl>(name: K): Impl[K];
|
|
40
|
+
/**
|
|
41
|
+
* Install one trampoline per heal method on Locator.prototype. Each call runs
|
|
42
|
+
* the active mode's wrapper (built by that mode's `makeHealWrapper` around the
|
|
43
|
+
* same original method, once per mode). Idempotent.
|
|
44
|
+
*
|
|
45
|
+
* Needs a live Page because Playwright doesn't export the Locator class.
|
|
46
|
+
*/
|
|
47
|
+
export declare function installHealPatch(samplePage: Page): void;
|
|
48
|
+
/** Test-only: restore Locator.prototype. */
|
|
49
|
+
export declare function _uninstallHealPatch(samplePage?: Page): void;
|
|
50
|
+
/** Test-only: point a mode at another implementation; returns a restore fn. */
|
|
51
|
+
export declare function _setImplForTesting(m: Mode, implementation: Impl): () => void;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpC,MAAM,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;AAC7B,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAU/B,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,8DAA8D;AAC9D,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAMD,gDAAgD;AAChD,wBAAgB,KAAK,IAAI,IAAI,EAAE,CAE9B;AAED,KAAK,KAAK,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC;AAC3C,KAAK,KAAK,GAAG;KAAG,CAAC,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,IAAI,CAAC,CAAC;AAElF,sDAAsD;AACtD,wBAAgB,EAAE,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAMpD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CA0C7D;AAMD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,IAAI,GAAG,IAAI,CA0BvD;AAID,4CAA4C;AAC5C,wBAAgB,mBAAmB,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAQ3D;AAED,+EAA+E;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