Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I would be really interested to be able to use the playback part of this for unit testing. I have code that can click buttons, but it would be great to have a library I could just load inside a page and then play back a series of events.

I am poking through the source... seems like it should be pretty easy to programmatically build a stream of events to load, but I can't quite find the code that actually plays them back?



Hey, sorry for late response. I've just saw your comment.

You can look at https://github.com/nenadg/traquer/blob/master/public/lib/tra... (core method).

You can find `play` function in it. `play` function calls for `eventsScheduler` that does replay part by calling actions (events) on saved objects in pre-saved time (ie. time you moved your mouse and clicked here and there).

If you have any further questions email me. I've attached my email to my hn profile.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: