Close, but it looks like you're confusing httpwatch methods with Watir
methods:


require 'win32ole'
require 'watir'

control = WIN32OLE.new('HttpWatch.
>
> Controller')
>   browser = Watir::Browser.new
> plugin = control.ie.Attach(browser.ie <http://ie.ie/>)
> plugin.Clear()
> plugin.Record()
> browser.goto("www.google.com")
> plugin.stop()


control.ie.Attach is an HttpWatch call.

HTH,

Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct


On Thu, Mar 12, 2009 at 7: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