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.
- package/README.md +246 -57
- package/dist-obf/actions/baseHandler.js +1 -0
- package/dist-obf/actions/browserManager.js +1 -0
- package/dist-obf/actions/checkboxHandler.js +1 -0
- package/dist-obf/actions/clickHandler.js +1 -0
- package/dist-obf/actions/customcodehandler.js +1 -0
- package/dist-obf/actions/dropdownHandler.js +1 -0
- package/dist-obf/actions/radiobuttonHandler.js +1 -0
- package/dist-obf/actions/textHandler.js +1 -0
- package/dist-obf/api/server.js +1 -0
- package/dist-obf/config.js +1 -0
- package/dist-obf/executor/functionMap.js +1 -0
- package/dist-obf/executor/mapping.js +1 -0
- package/dist-obf/executor/scriptExecutor.js +1 -0
- package/dist-obf/executor/stepExecutor.js +1 -0
- package/dist-obf/runner/testRunner.js +1 -0
- package/dist-obf/sse/sseManager.js +1 -0
- package/dist-obf/store/executionStore.js +1 -0
- package/dist-obf/store/testDataStore.js +1 -0
- package/dist-obf/types/types.js +1 -1
- package/dist-obf/utils/healingService.js +1 -0
- package/dist-obf/utils/locatorService.js +1 -0
- package/dist-obf/utils/logger.js +1 -1
- package/dist-obf/utils/metadataService.js +1 -0
- package/dist-obf/utils/waitConditions.js +1 -0
- package/dist-obf/validator/validator.js +1 -0
- package/npmignore +8 -0
- package/package.json +32 -1
- package/public/dashboard.html +591 -0
- package/src/actions/baseHandler.ts +351 -0
- package/src/actions/browserManager.ts +432 -0
- package/src/actions/checkboxHandler.ts +276 -0
- package/src/actions/clickHandler.ts +513 -0
- package/src/actions/customcodehandler.ts +251 -0
- package/src/actions/dropdownHandler.ts +501 -0
- package/src/actions/radiobuttonHandler.ts +286 -0
- package/src/actions/textHandler.ts +498 -0
- package/src/api/server.ts +210 -0
- package/src/config.ts +7 -0
- package/src/executor/functionMap.ts +153 -0
- package/src/executor/mapping.ts +70 -0
- package/src/executor/scriptExecutor.ts +162 -0
- package/src/executor/stepExecutor.ts +289 -0
- package/src/runner/testRunner.ts +78 -0
- package/src/sse/sseManager.ts +130 -0
- package/src/store/executionStore.ts +152 -0
- package/src/store/testDataStore.ts +46 -0
- package/src/types/types.ts +159 -0
- package/src/utils/healingService.ts +210 -0
- package/src/utils/locatorService.ts +73 -0
- package/src/utils/logger.ts +27 -0
- package/src/utils/metadataService.ts +137 -0
- package/src/utils/waitConditions.ts +141 -0
- package/src/validator/validator.ts +140 -0
- package/tsconfig.json +16 -0
- package/bin/lexxit-automation-framework.js +0 -224
- package/dist-obf/app.js +0 -1
- package/dist-obf/controllers/controller.js +0 -1
- package/dist-obf/core/BrowserManager.js +0 -1
- package/dist-obf/core/PlaywrightEngine.js +0 -1
- package/dist-obf/core/ScreenshotManager.js +0 -1
- package/dist-obf/core/TestData.js +0 -1
- package/dist-obf/core/TestExecutor.js +0 -1
- package/dist-obf/core/handlers/AllHandlers.js +0 -1
- package/dist-obf/core/handlers/BaseHandler.js +0 -1
- package/dist-obf/core/handlers/ClickHandler.js +0 -1
- package/dist-obf/core/handlers/CustomCodeHandler.js +0 -1
- package/dist-obf/core/handlers/DropdownHandler.js +0 -1
- package/dist-obf/core/handlers/InputHandler.js +0 -1
- package/dist-obf/core/registry/ActionRegistry.js +0 -1
- package/dist-obf/installer/frameworkLauncher.js +0 -1
- package/dist-obf/public/dashboard.html +0 -591
- package/dist-obf/public/execution.html +0 -510
- package/dist-obf/public/queue-monitor.html +0 -408
- package/dist-obf/queue/ExecutionQueue.js +0 -1
- package/dist-obf/routes/api.routes.js +0 -1
- package/dist-obf/server.js +0 -1
- package/dist-obf/utils/chromefinder.js +0 -1
- package/dist-obf/utils/elementHighlight.js +0 -1
- package/dist-obf/utils/locatorHelper.js +0 -1
- package/dist-obf/utils/response.js +0 -1
- package/dist-obf/utils/responseFormatter.js +0 -1
- package/dist-obf/utils/sseManager.js +0 -1
- package/scripts/postinstall.js +0 -52
package/scripts/postinstall.js
DELETED
|
@@ -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`);
|