last-hit icon indicating copy to clipboard operation
last-hit copied to clipboard

Electron Support?

Open yetyman opened this issue 4 years ago • 2 comments

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?

yetyman avatar Nov 03 '20 17:11 yetyman

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

yetyman avatar Nov 03 '20 17:11 yetyman

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, 截屏2021-01-20 下午5 03 00

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.

last-hit-b avatar Jan 20 '21 09:01 last-hit-b