Playwright · Senior · Question 62 of 77
How do you test an Electron app with Playwright?
- 1Electron apps can't be automated with Playwright
- 2Open the app's
index.htmlfile in Chromium - 3Use the experimental
_electronAPI to launch and drive it
Show the answer
Correct answer: Use the experimental _electron API to launch and drive it
Explanation
Playwright can launch Electron, access its windows as pages and evaluate code in the main process.