rcontext.submitForm("GET", url, "_this", null, new FormInput[] {
submitInput1, submitInput2, submitInput3
});
HTMLDocumentImpl startingDoc = rcontext.getCurrentDocument();
if(startingDoc == null)
{
throw new IllegalStateException("No document available for startup location.");
}
System.out.println(startingDoc.getAnchors().getLength());
XPath xpath = XPathFactory.newInstance().newXPath();
NodeList nodeList = (NodeList) xpath.evaluate("//a", startingDoc, XPathConstants.NODESET);
for(int i=0; i < nodeList.getLength(); i++)