3 ms·
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 l
by erikpukinskis 10y ago
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?
- nenadg 10y agoHey, sorry for late response. I've just saw your comment. You can look at https://github.com/nenadg/traquer/blob/master/public/lib/traquer.js 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.