Thanks Adrian,Sorry for replying so late, because the network problem,
sometime i can't access this site.
----------------------------------------------------
I post some of my code here:
IE ie = new IE();
ie.start(url);
ie.bringToFront();
ie.maximize();
...
new Thread(new Runnable() {
public void run() {
try {
ie.frame("wind").frame("main").div
(id,"pcButtons").form(id,"controlForm").table(1).body(0).cell
(0,2).image(0).click();
} catch (Exception e) {
e.printStackTrace();
}
}
}).start();
ModalDialog modalDialog = ie.modalDialog();
....
final ModalDialog modalDialog2 = modalDialog;
new Thread(new Runnable() {
public void run() {
try {
modalDialog2.frame(0).div
(id,"formHolder").form(id,"theForm").table(1).body(0).image(4).click
();
} catch (Exception e) {
e.printStackTrace();
}
}
}).start();
ModalDialog modalDialog_child = ie.modalDialog();
System.out.println(modalDialog_child.html());
I debuged at line ModalDialog modalDialog_child = ie.modalDialog();
found that the thread hanged up at the line "webBrowser.waitReady
(timeMillis)" of IE class
private void doWaitUntilReady(long timeMillis) throws Exception {
Debug.getInstance().println("Begin IE.doWaitUntilReady(long
timeMillis)");
webBrowser.waitReady(timeMillis);
waitUntilDocumentInitializedAndComplete();
Debug.getInstance().println("End IE.doWaitUntilReady(long
timeMillis)");
}
I didn't get a timeout exception and also can get the old previous
modal dialog.
Many thanks,
Kevin
> >
watij%2Bunsu...@googlegroups.com<
watij%252Buns...@googlegroups.com>