felipecaparelli/selectron ? reverse-engineered prompt

Reverse engineered prompt

Build me a small JavaScript library that makes end to end testing of native Electron apps much easier with Selenium and Mocha.

I want a clean test setup where I can start a driver, point it at an Electron app, and use simple helper methods to click buttons, fill inputs, check boxes, pick radio options, choose dropdown values, wait for images and transitions, and read browser logs. Please also include a custom ChromeDriver setup, support for environment based configuration, and a simple way to turn on diagnostics when tests fail.

Make the test files easy to organize inside a test folder, and include a clear example test that shows the basic flow from setup to cleanup. If it helps, look up the current docs online for Selenium and Electron compatibility details. I’d also like it to work with a local Electron build path or a copied app build in a data folder, so it’s easy to run against either my own app or the example app.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab