UNPKG

@progress/kendo-e2e

Version:

Kendo UI end-to-end test utilities.

42 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ElectronApp = void 0; const web_app_1 = require("./web-app"); /** * WebDriver wrapper for testing Electron applications. * * Extends {@link WebApp} with Electron-specific capabilities. Use this class when testing * Electron apps or VS Code extensions (which run in Electron). * * Unlike {@link Browser}, ElectronApp doesn't have browser chrome (address bar, refresh button, * tabs, etc.) since Electron apps render within a webview context. * * **Features:** * - All WebApp capabilities (find, click, type, wait, expect, etc.) * - Automatic waiting for elements * - Modern expect API * - Element interaction helpers * * @example * ```typescript * // Testing an Electron app * const electronDriver = // ... configure electron driver * const app = new ElectronApp(electronDriver); * * await app.click('#menu-file'); * await app.click('#menu-new'); * await app.expect('.editor').toBeVisible(); * * // Testing VS Code extension * const vscode = new ElectronApp(vscodeDriver); * await vscode.type('.monaco-editor textarea', 'console.log("test");'); * await vscode.sendControlKeyCombination('s'); // Save * ``` * * @see {@link WebApp} for all available methods * @see {@link Browser} for browser-specific testing */ class ElectronApp extends web_app_1.WebApp { } exports.ElectronApp = ElectronApp; //# sourceMappingURL=electron-app.js.map