How to automate Electron based Applications with Leapwork?
How to automate Electron based Applications with Leapwork?
Introduction
Electron is a free and open-source software framework developed and maintained by GitHub. It allows for developing desktop GUI applications using web technologies. It combines the Chromium rendering engine and the Node.js runtime. Electron applications can be very easily automated using Leapwork.
Prerequisites
The electron application hosts the browser inside. Different applications can be based on different Chromium browsers. You need to find the exact version of the browser used in each specific Electron application. To achieve that, download all the major chrome driver versions and save in Leapwork Directory C:\Program Files\LEAPWORK\Studio\driver\chrome.
Once the user completes the prerequisites, the user can start automating the electron-based applications.
Automate Electron applications through Leapwork
Start Recorder
To use Smart recorder, click (+) and select Start Electron Application in the recorder menu. You can automate the web browser or any desktop application using the recorder.
The Start Electron Application prompt appears. Specify the path/name of the Electron-based application.
Note: Leapwork would show a prompt when the application selected is an electron-based application or not. If the user wants to keep using the desktop blocks to automate the application, the user needs to select "Continue" and if the user wants to use the Electron blocks, the user needs to "restart" the application.
Building Blocks
You can automate the Electron application by using the building blocks as well. Leapwork has created the building blocks specifically to automate Electron-based applications. The user can find all the blocks under the “Electron” menu in “Add building blocks”.
If you have any questions, contact our Priority Support.