i tried this aqpproach a long time ago, and it didnt work if I remember. I have recollections of trying to see if the js error icon was there too. think in the end I just switched 'display js errors' on so the test would stop if there was an error.
Paul On Wed, Oct 14, 2009 at 8:18 AM, Bret Pettichord <b...@pettichord.com>wrote: > > Good idea. "browser.status" will report the status message. Could you > check this out and let us know if it has promise? > > Bret > > Pallavi Sharma wrote: > > Hi Bret > > > > Is there a way in watir I can fetch the warning message which appears > > in the status bar of IE during a JS error? > > > > Can that be a solution for this issue? > > > > Please let me know. > > > > Thanks > > > > Pallavi. > > > > On Mon, Oct 12, 2009 at 8:45 AM, Bret Pettichord <b...@pettichord.com > > <mailto:b...@pettichord.com>> wrote: > > > > > > Marlon MxM wrote: > > > have you tried the solutions listed here > > > http://wiki.openqa.org/display/WTR/Pop+Ups? > > Mostly that consists of variations on using AutoIt. > > > > I'm looking for more creative approaches. > > > > E.g. as regards this dialog: > > http://wiki.openqa.org/display/WTR/Security+Information > > > > I got rid of this simply by changing the security setting of the > > browser > > (manually) to stop displaying this window. > > > > I know that there must be some hook that is available to trap the > > javascript errors. If you have Visual Studio installed, instead of > > getting this dialog, the visual studio debugger is started up. So > > there > > is a hook there. > > > > I was thinking it would be cool to hook in our own code to that hook, > > and was wondering if any one had already done this. > > > > Bret > > > > -- > > Bret Pettichord > > Lead Developer, Watir, www.watir.com <http://www.watir.com> > > Blog, www.io.com/~wazmo/blog <http://www.io.com/%7Ewazmo/blog> < > http://www.io.com/%7Ewazmo/blog> > > Twitter, www.twitter.com/bpettichord > > <http://www.twitter.com/bpettichord> > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---