lexxit-automation-framework 2.0.20 → 3.0.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.
Files changed (84) hide show
  1. package/README.md +246 -57
  2. package/dist-obf/actions/baseHandler.js +1 -0
  3. package/dist-obf/actions/browserManager.js +1 -0
  4. package/dist-obf/actions/checkboxHandler.js +1 -0
  5. package/dist-obf/actions/clickHandler.js +1 -0
  6. package/dist-obf/actions/customcodehandler.js +1 -0
  7. package/dist-obf/actions/dropdownHandler.js +1 -0
  8. package/dist-obf/actions/radiobuttonHandler.js +1 -0
  9. package/dist-obf/actions/textHandler.js +1 -0
  10. package/dist-obf/api/server.js +1 -0
  11. package/dist-obf/config.js +1 -0
  12. package/dist-obf/executor/functionMap.js +1 -0
  13. package/dist-obf/executor/mapping.js +1 -0
  14. package/dist-obf/executor/scriptExecutor.js +1 -0
  15. package/dist-obf/executor/stepExecutor.js +1 -0
  16. package/dist-obf/runner/testRunner.js +1 -0
  17. package/dist-obf/sse/sseManager.js +1 -0
  18. package/dist-obf/store/executionStore.js +1 -0
  19. package/dist-obf/store/testDataStore.js +1 -0
  20. package/dist-obf/types/types.js +1 -1
  21. package/dist-obf/utils/healingService.js +1 -0
  22. package/dist-obf/utils/locatorService.js +1 -0
  23. package/dist-obf/utils/logger.js +1 -1
  24. package/dist-obf/utils/metadataService.js +1 -0
  25. package/dist-obf/utils/waitConditions.js +1 -0
  26. package/dist-obf/validator/validator.js +1 -0
  27. package/npmignore +8 -0
  28. package/package.json +32 -1
  29. package/public/dashboard.html +591 -0
  30. package/src/actions/baseHandler.ts +351 -0
  31. package/src/actions/browserManager.ts +432 -0
  32. package/src/actions/checkboxHandler.ts +276 -0
  33. package/src/actions/clickHandler.ts +513 -0
  34. package/src/actions/customcodehandler.ts +251 -0
  35. package/src/actions/dropdownHandler.ts +501 -0
  36. package/src/actions/radiobuttonHandler.ts +286 -0
  37. package/src/actions/textHandler.ts +498 -0
  38. package/src/api/server.ts +210 -0
  39. package/src/config.ts +7 -0
  40. package/src/executor/functionMap.ts +153 -0
  41. package/src/executor/mapping.ts +70 -0
  42. package/src/executor/scriptExecutor.ts +162 -0
  43. package/src/executor/stepExecutor.ts +289 -0
  44. package/src/runner/testRunner.ts +78 -0
  45. package/src/sse/sseManager.ts +130 -0
  46. package/src/store/executionStore.ts +152 -0
  47. package/src/store/testDataStore.ts +46 -0
  48. package/src/types/types.ts +159 -0
  49. package/src/utils/healingService.ts +210 -0
  50. package/src/utils/locatorService.ts +73 -0
  51. package/src/utils/logger.ts +27 -0
  52. package/src/utils/metadataService.ts +137 -0
  53. package/src/utils/waitConditions.ts +141 -0
  54. package/src/validator/validator.ts +140 -0
  55. package/tsconfig.json +16 -0
  56. package/bin/lexxit-automation-framework.js +0 -224
  57. package/dist-obf/app.js +0 -1
  58. package/dist-obf/controllers/controller.js +0 -1
  59. package/dist-obf/core/BrowserManager.js +0 -1
  60. package/dist-obf/core/PlaywrightEngine.js +0 -1
  61. package/dist-obf/core/ScreenshotManager.js +0 -1
  62. package/dist-obf/core/TestData.js +0 -1
  63. package/dist-obf/core/TestExecutor.js +0 -1
  64. package/dist-obf/core/handlers/AllHandlers.js +0 -1
  65. package/dist-obf/core/handlers/BaseHandler.js +0 -1
  66. package/dist-obf/core/handlers/ClickHandler.js +0 -1
  67. package/dist-obf/core/handlers/CustomCodeHandler.js +0 -1
  68. package/dist-obf/core/handlers/DropdownHandler.js +0 -1
  69. package/dist-obf/core/handlers/InputHandler.js +0 -1
  70. package/dist-obf/core/registry/ActionRegistry.js +0 -1
  71. package/dist-obf/installer/frameworkLauncher.js +0 -1
  72. package/dist-obf/public/dashboard.html +0 -591
  73. package/dist-obf/public/execution.html +0 -510
  74. package/dist-obf/public/queue-monitor.html +0 -408
  75. package/dist-obf/queue/ExecutionQueue.js +0 -1
  76. package/dist-obf/routes/api.routes.js +0 -1
  77. package/dist-obf/server.js +0 -1
  78. package/dist-obf/utils/chromefinder.js +0 -1
  79. package/dist-obf/utils/elementHighlight.js +0 -1
  80. package/dist-obf/utils/locatorHelper.js +0 -1
  81. package/dist-obf/utils/response.js +0 -1
  82. package/dist-obf/utils/responseFormatter.js +0 -1
  83. package/dist-obf/utils/sseManager.js +0 -1
  84. package/scripts/postinstall.js +0 -52
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * postinstall.js
5
- * Runs automatically after: npm install -g lexxit-automation-framework
6
- * Installs Playwright Chromium silently.
7
- */
8
-
9
- const { execSync } = require("child_process");
10
-
11
- const COLORS = {
12
- reset: "\x1b[0m",
13
- green: "\x1b[32m",
14
- yellow: "\x1b[33m",
15
- red: "\x1b[31m",
16
- cyan: "\x1b[36m",
17
- };
18
-
19
- function log(color, prefix, msg) {
20
- console.log(`${color}${prefix}${COLORS.reset} ${msg}`);
21
- }
22
-
23
- console.log(`
24
- ${COLORS.cyan}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
25
- lexxit-automation-framework — Post Install Setup
26
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${COLORS.reset}
27
- `);
28
-
29
- // ─── INSTALL PLAYWRIGHT CHROMIUM ─────────────────────────────────────────────
30
-
31
- log(COLORS.cyan, "[1/1]", "Installing Playwright Chromium browser...");
32
-
33
- try {
34
- execSync("npx playwright install chromium", {
35
- stdio: "inherit",
36
- timeout: 120000, // 2 minutes
37
- });
38
-
39
- log(COLORS.green, "✔", "Playwright Chromium installed successfully.\n");
40
- } catch (err) {
41
- log(
42
- COLORS.yellow,
43
- "⚠",
44
- "Playwright Chromium install failed. You can run it manually:"
45
- );
46
- console.log(" npx playwright install chromium\n");
47
- // Don't exit(1) — don't block the npm install itself
48
- }
49
-
50
- console.log(`${COLORS.green}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`);
51
- console.log(` Setup complete. Run: lexxit-automation-framework start`);
52
- console.log(`━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${COLORS.reset}\n`);