last-hit
last-hit copied to clipboard
Electron Support?
Hi! I really like Last Hit, it seems very smooth compared to most recorders. I noticed that Last Hit is developed in Electron, so I was wondering is Last Hit can test an Electron app. Typically test frameworks allow you to start exes and then sense browser windows open on the computer, but i didn't see an option for capturing a browser window, only for starting a new one.
I imagine I could start an exe from Typescript with the right libraries, but how can i get Last-Hit to attach to a new browser window?
It does appear this is plausible https://github.com/puppeteer/puppeteer/issues/4655 puppeteer can attach to an existing electron window, there would just need to be a way to indicate this in the ui and it seems your index.ts would easily integrate it where it normally launches a browser through puppeteer
Hi @yetyman,
Thank you very much. About test web in electron, seems no plan in a short time. But anyway, you can fork this repo to build you own.
we launch browser in https://github.com/last-hit-aab/last-hit-replayer, related code is in lib/replayer/replayer.ts
,
In the meantime, you might need to change function end
to disconnect from electron.
Good luck and we'll leave this issue opening and welcome PR!
Thanks again.