How can I do that in Java?
I want my application to programatically:
1) launch the Chrome browser to URL (I already know how to do this),
URI uri = new URI("http://www.example.com");
Desktop desktop = null;
if (Desktop.isDesktopSupported()) {
desktop = Desktop.getDesktop();
}
if (desktop != null) {
desktop.browse(uri);
System.out.print("worked");
}
2) set the user agent (stuck on doing this)
3) set proxy. (and this)
4) fill out some form data and complete some other functions
5) repeat
Im stuck. Is this possible for a java application to do? I was using HtmlUnit at first to load the webpage and submit form data and complete some actions through that, BUT certain Javascripts don't load, that regular browsers do, I need that functionality.
This is an OSX specific application.
Thanks.