I was able to reproduce another instance of this problem and recently committed the fix to SVN.

I think the problem only occurs when you don't need to use the form syntax because there is only one form on the page.

Bret

On 3/14/06, Marcus Tettmar <[EMAIL PROTECTED]> wrote:
Hi Bret,

I'm running Watir 1.4.1.  This is the full error message:

d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:805:in `each': Failed to get IEnum Interface (WIN32OLERuntimeError)
    HRESULT error code:0x80020003
      Member not found.    from d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:805:in `getObject'
    from d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in `initialize'
    from d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new'
    from d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `text_field'
    from google.rb:6

Full script:

  require 'watir' 
  include Watir
 
  $IE0 = IE.new
  $IE0.goto(" http://www.google.com/")
  $IE0.form( :name, "f").text_field( :name, "q").set("ruby")
  $IE0.form( :name, "f").button( :name, "btnG").click

Cheers,
Marcus

On 3/10/06, Bret Pettichord < [EMAIL PROTECTED]> wrote:
On 3/3/06, Marcus Tettmar <[EMAIL PROTECTED] > wrote:
Hi,

Why does this fail:

  $IE0.goto("http://www.google.com/")
  $IE0.form( :name, "f").text_field( :name, "q").set("ruby")
  $IE0.form( :name, "f").button( :name, "btnG").click

This fails with:

WIN32OLERuntimeError: Failed to get IEnum Interface
    HRESULT error code:0x80020003
      Member not found.

I ran your script with both Watir 1.4.1 and Watir 1.5.0.928 (aka HEAD). It worked for me in both cases. You didn't indicate which version of Watir you are using.

If you give the full error message, i would be able to speculate as to the possible cause. Specifically i'd need to know the line number of the error and preferably the full stack.

Bret


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




--

Marcus Tettmar
http://www.mjtnet.com/
Macro Scheduler & WebRecorder for Windows & Web Automation and Testing. WebRecorder for Ruby/Watir now available.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to