You could probably use Robot's Selenium Library to implement this kind
of tests.
Do you have any concrete problems/questions?
In general al lot of JavaScript can make testing Web-Applications with
Selenium quite difficult, but in most cases there
is a way to succeed :-).