uitest.js is able to load a webpage into a frame, instrument that page and the javascript in that page (e.g. add additional scripts at the end of the document, ...) and execute actions on that page.
It would be nice to be able to write tests using webdriver.js and execute them using uitest.js. Some kind of the old Selenium RC, but with the new webdriver API.
Guideline
intercept webdriver.js when it does the remote request
use jquery for implementing the query part of the webdriver.js protocol
use some other library for simulating browser events using Event.dispatchEvent...
It would be nice to be able to write tests using webdriver.js and execute them using uitest.js. Some kind of the old Selenium RC, but with the new webdriver API.
Guideline
Event.dispatchEvent
...