Hi Brown,

Some of the test cases don't work if you install Watir in a directory that contains space in their names. For e.g. c:\Program Files. Just try to install it in c:\watir & let me know if the test cases fails as well. The error you are getting is because IE gets close & scripts are still running. I don't know why this happens but the error "The object invoked has disconnected from its clients." comes only when you are using an IE instance that is not there.

Just try installing in some other directory that don't have space in its name & let me know if the test cases succeeded or not.

Regards,
Angrez

On 2/21/06, Brown, Christopher <[EMAIL PROTECTED]> wrote:
Okay,
 
I've installed Watir 1.4.1 then run install.rb from the tar bundle (bad move?). When I run xpath_tests.rb I get errors like the following
 
 87) Error:
test_textarea_field_exists(TC_TextArea_XPath):
WIN32OLERuntimeError: Unknown property or method `navigate'
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.
    C:/Temp/watir/unittests/../watir.rb:1324:in `method_missing'
    C:/Temp/watir/unittests/../watir.rb:1324:in `goto'
    C:/Temp/watir/unittests/../unittests/textAreafields_xpath_test.rb:11:in `gotoPage'
    C:/Temp/watir/unittests/../unittests/textAreafields_xpath_test.rb:15:in `test_textarea_field_exists'
 
88 tests, 0 assertions, 0 failures, 87 errors
 
Regards
 
Chris
-----Original Message-----
From: Angrez Singh [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 20, 2006 4:59 PM
To: [email protected]
Subject: Re: [Wtr-general] xpath support doesn't work for me

Hi Brown,

Anyway, when I run my test script I get the following error message

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273:in `initialize': LoadLibrary:
c:\ruby\lib\ruby\site_ruby\1.8\watir\IEDialog\Release\IEDialog.dll
(RuntimeError)
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273:in `new'
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
        from G:/workspace/web_pages/trial.rb:1

The error that you are getting has nothing to do with the XPath support. Could you please try to run the xpath unit tests provided with the TAR ball to make sure that XPath is working?

Regards,
Angrez


_______________________________________________
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