Now it works, thanks guys!

Cheers,
John

On Mar 12, 3:44 pm, marekj <marekj....@gmail.com> wrote:
> I wrote this a year 
> agohttp://www.marekj.com/2008/04/using-httpwatch-with-watir/
>
> With Watir 1.6.2 you don't have to change anything. You stil work with IE
> right?
> and here is your bug:
> plugin = control.browser.Attach(browser.browser) # <===== should be
> browser.ie
>
> But this gives an error:
>
> in `method_missing': unknown property or method `browser' # <= IE class does
> not have browser method
>
> marekj
>
> Watirloo: Semantic Page Objects in UseCaseshttp://github.com/marekj/watirloo/
>
> On Thu, Mar 12, 2009 at 8:32 AM, JArkelen <johnvanarke...@gmail.com> wrote:
>
> > Hi,
>
> > With this example you can integrate HttpWatch with Watir:
>
> > require 'win32ole'
> > require 'watir'
>
> > control = WIN32OLE.new('HttpWatch.Controller')
> > ie = Watir::IE.new
> > plugin = control.ie.Attach(ie.ie)
> > plugin.Clear()
> > plugin.Record()
> > ie.goto("www.google.com")
> > plugin.stop()
>
> > Now I want to use this with Watir 1.6.2 and I assume that these lines
> > would be changed:
>
> > browser = Watir::Browser.new
> > plugin = control.browser.Attach(browser.browser)
>
> > But this gives an error:
>
> > in `method_missing': unknown property or method `browser'
>
> > Any ideas?
>
> > Cheers,
> > John
--~--~---------~--~----~------------~-------~--~----~
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