As far as I am aware you have to implement a passthrough Asynchronous Pluggable Protocol (APP):

http://msdn.microsoft.com/workshop/networking/pluggable/pluggable.asp

http://tinyurl.com/9xqvt

Not sure if this is what the iehttpheaders plug in does - it may just cheat and get the URL of the new page and request the headers afterwards with HttpQueryInfo.

Marcus

On 2/17/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
On 2/15/06, Chris Schmechel <[EMAIL PROTECTED] > wrote:
Ok, but I don't really want to navigate to the page using both IE and Net:HTTP classes.
I've already navigated to the main page via ie.goto() and I'm using ie.button().click to navigate
to the resulting page.

Is there an equivalent method in Watir or something I can query in the DOM
to return the HTTP status after the ie.button().click method finishes?  It would
be nice to have something similar to $mech->status in Perl.  I'm only aware of
the ie.contains_text() method which isn't quite right.

Unlike $mech, which is a browser simulator, Watir is a browser automator. The headers are not in the DOM -- they are directly handled by the browser, which in this case is IE. Some one needs to figure out how to get IE to reveal this information.

Here's a tool that makes them visible, thus proving that it is programatically available. But the tool is closed source.

     http://www.blunck.info/iehttpheaders.html

If any one knows more about how we could get this information into Watir, please speak up.

Bret

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




--
Marcus Tettmar
http://www.mjtnet.com/
Macro Scheduler & WebRecorder for Windows & Web Automation and Testing. WebRecorder for Ruby/Watir now available.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to