How to get page source code using JRex?
Ho开发者_高级运维w to access page source code using JRex?
//WebNavigation navigation = null;
//URI uri = null;
navigation.loadURI(uri, WebNavigationConstants.LOAD_FLAGS_NONE, null, null, null);
Document doc = navigation.getDocument();
Element ex = doc.getDocumentElement();
System.out.println(ex.getTextContent()); //prints page source
精彩评论