Why do you want to do this? It is likely that looking at the requirement rather than the technical solution would be the best option here. If you have a bot that wishes to spider information "protected" by a Captcha then contacting the providers and asking for direct access to the data would likely be a much better option that the cat & mouse game you will enter without the providers permission to access said content.
You could use a JavaScript interpreter to run the script. Java 6 comes with one built in or you could embed the complete HTML frame in a browser for the manual part.