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
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.
Thanks again,
Chris Schmechel
On 2/14/06, Sathya Shankar <satti at qantom.com> wrote:
> Chris Schmechel wrote:
> Use Net::HTTP class of Ruby to check the response by navigating to the page.
>
> require 'net/http'
> h = Net::HTTP.new('www.foo.com', 80)
> resp, data = "" nil )
> puts "Code = #{resp.code}"
> if #(resp.code) == 200
> puts "The page has loaded"
> else
> puts "The page Error!!!"
> end
Thanks again,
Chris Schmechel
On 2/14/06, Sathya Shankar <satti at qantom.com> wrote:
> Chris Schmechel wrote:
> Use Net::HTTP class of Ruby to check the response by navigating to the page.
>
> require 'net/http'
> h = Net::HTTP.new('www.foo.com', 80)
> resp, data = "" nil )
> puts "Code = #{resp.code}"
> if #(resp.code) == 200
> puts "The page has loaded"
> else
> puts "The page Error!!!"
> end
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
