| || |
The structure of this dialog window is (Browser->Dialog->BrowserChild->Page).
Now the problem, when I navigate from click on link to new dialog window I have to wait for new dialog window to open up and render all the html objects on it.
I have following options to wait for new dialog to fully load
(a)Sleep -> It works
(b)object.exists -> It doesn't work.
(c)check status bar -> It is not possible to check it as the message remains constant. It doesn't happen something like 'done'
Now sleep is not a real good alternative as the response time of system may vary. Now the only other option I have is to use lastrenderedobject.exists(very large n) but on use of it all subsequent steps like htmltext.set doesn't happen i.e it gives error that htmltext not found.
Please advice. Is there any way to surely know if the page is loaded and proceed.
Thanks for your time!!
BrowserChild..ExecMethod("document.readyState") worked for me!!