Like you said... inelegant... but the important thing is to solve
this :)

For the moment I will try to do it using net/http, but I I'm having
problems using https and session cookies...

On May 20, 8:03 pm, Alex Collins <a.j.collins...@gmail.com> wrote:
> Perhaps you should try using AutoIt (several examples in this groups  
> recent history) to:
>
> send Ctrl-S to save the file
> set the filename in the text box
> press the save button
>
> Inelegant, but should work.
>
> There is a useful tool in the full AutoIt installer that helps you  
> identify the windows and identifiers to enter text into text boxes,  
> press buttons etc.
>
> Alex
>
> On 20 May 2009, at 17:19, TCBlues wrote:
>
>
>
>
>
> > Thanks for your answer but this is not working in my case.
> > Since I'm logging the user with watir and I need to get the html with
> > net/http in the same connection.
> > Thanks for the try.
>
> > On May 20, 4:11 pm, sHiVa <krapa.ph...@gmail.com> wrote:
> >> Hi TCBlues,
>
> >> This code can help you. Here what i am doing is, using watir i opened
> >> yahoo.com and by passing the current yahoo url to the net/http i am
> >> capturing all the html code as a response for the url
>
> >> require 'watir'
> >> require 'net/http'
> >> require 'rubygems'
> >> ie=Watir::IE.start('www.yahoo.com')
> >> url=ie.url
> >> puts html = Net::HTTP.get_response(URI.parse(url)).body
>
> >> Regards
> >> Siva Phaneendra Krapa
> >> Virtusa
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to