final WebClient webClient = new WebClient(BrowserVersion.I
NTERNET_EX
PLORER_8);
DefaultCredentialsProvider
userCredentials = new DefaultCredentialsProvider
();
userCredentials.addNTLMCre
dentials("
xxxxx", "xxxxx", null, -1, "xxxxx", "xxxx");
webClient.setCredentialsPr
ovider(use
rCredentia
ls);
//to make it possible clicking on the OK button generated by js
ConfirmHandler okHandler = new ConfirmHandler(){
public boolean handleConfirm(Page page, String message) {
return true;
}
};
webClient.setConfirmHandle
r(okHandle
r);
WebClient.addWebWindowList
ener(new WebWindowAdapter() {
public void webWindowOpened(WebWindowE
vent event) {
System.out.println("Opened
");
}
});
final HtmlPage page = webClient.getPage("
http://cbrint78/dms_test_new_code/ProjectsDisc.aspx?id=1726");
...