We have the following scenario that we need to deal with in our WEB application (IE 6.0 browser).
Kindly give me the detailed steps.
Thanks in Advance!!
You can declare a Class of your own to handle all the message boxes or a blunt way of doing it would be using TypeKeys<"Enter">.
I am not sure helps, let us know if it served you purpose.
Kiran Malla firstname.lastname@example.org
Please refer Dialogbox class in Help.
Dialogbox class has different built in methods to the situation.
Notation: Opinions stated above are of my own.
I got the solution. But this might not be the best one. As of now this piece of code works.
If a message box pops up, the focus will not be on the browser's main window or browser child. So this is indicative of the fact there is either a child window or dialog box.
The code is:
Personally I would do it like this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">window ActiveWindow = Desktop.GetActive ()
if (ActiveWindow.IsOfClass(DialogBox) || ActiveWindow.IsOfClass(XulTemplateDlg))
BrowserMessage.TypeKeys("<Enter>"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">(Its just a bit more generic)
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Thanks Chris. I implemented the above suggestion -- it works fine.