Wyatt Greene
1/31/2008 10:52:00 PM
On Jan 31, 1:47 pm, Moises Trovo <moises.tr...@gmail.com> wrote:
> [Note: parts of this message were removed to make it a legal post.]
>
> On Jan 31, 2008 2:34 PM, Agustin Ramos <aar...@gmail.com> wrote:
>
> > Hi everybody!, i want to know if it's possible to get the state icon in
> > the
> > button left of the Internet Explorer, like "Error on Page" or "Done" or
> > something like this (java script errors).
> > I'm using the latest version of the Watir library (1.5.3)
>
> > Ideas are welcome
>
> > Regards
>
> Maybe you can get it with jscript, but as it's an IE special behavior almost
> sure that's not possible with true javascript.
You can, however, get the text of the status bar via JavaScript via
Ruby's Win32OLE. I've done this before (but unfortunately I don't
have access to that code now, or I'd post it). It's an OLE method
that you send to the browser object named something like status or
statusText.