How to get Java to control / control webkit / gecko?

I want to have Java to control the webkit / gecko / konqueror browser.

Java should be able to do things like "go to this URL, give me the DOM tree, simulate mouse input / keyboard on blah."

What is the easiest way to do this? There seem to be some semi-working solutions on the Internet, but no real open source project.

What did you do in the situation? (I have to use Java, but the kernel that I control is open to choice).

Thanks!

+1
source share
1 answer

I'm not sure what exactly you need to do, but Selenium Remote Control works with Firefox, IE and Safari.

Java-

selenium.open("/");
selenium.type("q", "selenium rc");
selenium.click("btnG");
selenium.waitForPageToLoad("30000");
assertTrue(selenium.isTextPresent("Results * for selenium rc"));
+2

All Articles