How can I simulate it, say clicking on a submit button with code from my app via using the source code of the html file, thus making the browser totally automated.

------------------