This is very puzzling to me. It doesn't look like Watir can't get to the
DOM tree. It is failing on
ie.document.body.all
This returns a COM object, but i has no IEnum Interface.
It seems like maybe you are running a very old version of IE. Watir needs
5.5 or later. But i think you get that automatically with XP SP 1. A puzzle.
Bret
At 10:28 AM 8/12/2005, Pascal SERODES wrote:
Yes the navigatio seems OK, the error raised even if i try to get the
content of a text field,
Ie.text_field(:name, 'name').getContents()
Again here the stack trace:
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\siouxWatir\scripts>t2.rb
## Debut test: Sioux Test
Step 1: connexion a sioux:
Step 2: loggin
d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:805:in `each': Failed to get IEnum
Interface (RuntimeError)
HRESULT error code:0x80004002
Cette interface n'est pas prise en charge 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:3236: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 D:/siouxWatir/scripts/t2.rb:24
At line 24 of file t2.rb i have:
ie.text_field(:name, 'j_username').getContents()
Nota: the error raised even if i try to simulate a click on a button with
the line:
ie.button(:name, 'Connexion').click
The initial error is on line 805 of watir.rb, looks like watir can't get
the DOM tree?
About the OS is Windows XP, SP1, french version.
Ruby version 1.8.1.2-15
Watir 1.4.2
I just did what's is tell in the "User Guide" step1 to Step4 except that
the problem arrived since step3 (dont pass the unittests step)
Is the problem link with services on windows XP?? The use of the COM
interface may be need some extra
Setup, by the way i am the administrator of the machine.
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Paul Rogers
Envoyé : vendredi 12 août 2005 16:46
À : wtr-general@rubyforge.org
Objet : RE: [Wtr-general] RuntimeError: failed
togetIEnumInterfaceHRESULTerror code:0x80004002
It does the navigation ok, just doesn't do the set on a text field - is
that right? What about other controls? Can you read values from a text field?
What OS are you using?
Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pascal SERODES
Sent: 12 August 2005 08:23
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] RuntimeError: failed to
getIEnumInterfaceHRESULTerror code:0x80004002
No the unittests raise the same error
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Paul Rogers
Envoyé : vendredi 12 août 2005 16:09 À : wtr-general@rubyforge.org Objet
: RE: [Wtr-general] RuntimeError: failed to get IEnumInterfaceHRESULTerror
code:0x80004002
Do the unit tests work for you?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pascal SERODES
Sent: 12 August 2005 02:32
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] RuntimeError: failed to get IEnum
InterfaceHRESULTerror code:0x80004002
My script is very simple,
The error is as soon i try to set a value in a text field (line number
24)
------------------------------------------------------------------------
-------------------------------------#
# test watir pour sioux
#
#-----------------------------------------------------------------------
-------------------------------------#
require 'watir' # the watir controller
# set a variable
siouxHome = 'http://localhost:8080/moa'
# open the IE browser
ie = Watir::IE.new
# print some comments
puts "## Debut test: Sioux Test"
puts " "
puts "Step 1: connexion a sioux: "
ie.goto(siouxHome)
puts "Step 2: loggin "
ie.text_field(:name, 'j_username').set('xxx') --> line number 24;
ie.text_field(:name, 'j_password').set('xxx')
ie.button(:name, 'Connexion').click
if ie.contains_text("noErrorsOnPage")
puts "connexion effectuée"
else
puts "no good"
end
puts " "
puts "## Fin du test"
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Bret Pettichord
Envoyé : jeudi 11 août 2005 17:56 À : wtr-general@rubyforge.org Objet :
Re: [Wtr-general] RuntimeError: failed to get IEnum InterfaceHRESULT error
code:0x80004002
The error comes from this line of your script
D:/watir-v1_4/sioux/scripts/t1.rb:24
Please show us your script.
At 04:01 AM 8/11/2005, Pascal SERODES wrote:
>Content-class: urn:content-classes:message
>Content-Type: multipart/alternative;
> boundary="----_=_NextPart_001_01C59E53.4882DE5C"
>
>i want to use watir but i'v got these troubleshooting:
>
>
>d:/ruby/lib/ruby/site_ruby/1.8/watir.rb:805:in `each': Failed to get
>
> IEnum Interface (RuntimeError) HRESULT error code:0x80004002
>
>Cette interface n'est pas prise en charge 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:3236: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 D:/watir-v1_4/sioux/scripts/t1.rb:24
>
>
>This error raised everytime watir try to set something in IE like
>
> setting a value in a textfield, Reading value from ie looks like OK.
>
> im using window XP SP1
>
> IE 6.0
>
> watir 1.4.2
>
>ruby 1.8.2-15
>
>
>_______________________________________________
>Wtr-general mailing list
>Wtr-general@rubyforge.org
>http://rubyforge.org/mailman/listinfo/wtr-general
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general