UNPKG

n8n-nodes-playwright-mcp

Version:

Complete n8n Playwright node with all Microsoft Playwright MCP tools and AI assistant support for advanced browser automation

28 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = require("fs"); const path_1 = require("path"); const os_1 = require("os"); function testPaths() { const os = (0, os_1.platform)(); const sourcePath = os === 'win32' ? (0, path_1.join)(process.env.USERPROFILE || '', 'AppData', 'Local', 'ms-playwright') : (0, path_1.join)(process.env.HOME || '', '.cache', 'ms-playwright'); console.log('Testing paths:'); console.log('Source path exists:', (0, fs_1.existsSync)(sourcePath)); if ((0, fs_1.existsSync)(sourcePath)) { console.log('Source contents:', (0, fs_1.readdirSync)(sourcePath)); } } function testBrowserVersions() { const browsersPath = (0, path_1.join)(process.cwd(), 'browsers'); console.log('\nTesting browser versions:'); console.log('Browsers path exists:', (0, fs_1.existsSync)(browsersPath)); if ((0, fs_1.existsSync)(browsersPath)) { console.log('Installed browsers:', (0, fs_1.readdirSync)(browsersPath)); } } console.log('Running setup tests...\n'); testPaths(); testBrowserVersions(); //# sourceMappingURL=test-setup.js.map