You do the web automation in the webviewer with javascript, just like you would do with normal html...
Also see (as previously posted)