What version of Watir are you on?
require 'watir-classic' # or require 'watir-webdriver'
ie = Watir::Browser.new(:internet_explorer')
ie.maximize
On Monday, February 23, 2015 at 11:38:19 PM UTC-6, Mike McClarin wrote:
>
> Hi, I am trying to automate httpwatch with watir. Please see my code below:
>
> require 'win32ole'
> require 'watir'
>
> # Open the IE browser using Watir
> ie = Watir::IE.new
>
> # Attach HttpWatch
> control = WIN32OLE.new('HttpWatch.Controller')
> plugin = control.Attach(ie.ie)
>
> # Start recording
> plugin.Record()
>
>
> When I run this in ruby, i receive the following alert:
>
>
> C:\Users\mmcclarin\Desktop\HTTPWatch>ruby testexample04.rb
> testexample04.rb:5:in `<main>': uninitialized constant Watir::IE
> (NameError)
>
>
>
> Any help would be appreciated
>
>
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.