Brett,

 

Thanks for uploading the new version but I’m still seeing the same behavior.  xpath_tests.rb fails and individual tests work fine. 

I did a fresh install of ruby182-15.exe then gem install watir-1.5.0.945.gem.

 

Here is the first Error there are a total of 87 errors

C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.0.945\unittests>xpath_tests.rb

Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/xpath_tests

Started

EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.

Finished in 0.05 seconds.

 

  1) Error:

test_Button_Enabled(TC_Buttons_XPath):

WIN32OLERuntimeError: Unknown property or method `navigate'

    HRESULT error code:0x80010108

      The object invoked has disconnected from its clients.

    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../watir.rb:1343:in `method_missing'

    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../watir.rb:1343:in `goto'

    C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../unittests/buttons_xpath_test.rb:11:in `setup'

 

This works:

C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.0.945\unittests>buttons_xpath_test.rb

Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/buttons_xpath_test

Started

F.....

Finished in 3.195 seconds.

 

  1) Failure:

test_Button_Enabled(TC_Buttons_XPath)

    [C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../watir/testUnitAddons.rb:5:in `assert_false'

     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../watir/testUnitAddons.rb:3:in `_wrap_assertion'

     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/../watir/testUnitAddons.rb:3:in `assert_false'

     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.945/unittests/buttons_xpath_test.rb:62:in `test_Button_Enabled']:

<true> is not false.

 

6 tests, 24 assertions, 1 failures, 0 errors

 

Here is my version information for ruby and watir

ruby -e 'require "watir"; puts Watir::IE::VERSION'

1.5.0.945

 

ruby --version

ruby 1.8.2 (2004-12-25) [i386-mswin32]

 

Thanks,

 

Linda


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Wednesday, March 29, 2006 1:41 PM
To: [email protected]
Subject: Re: [Wtr-general] XPath & "The object invoked has disconnected fromits clients." Error

 

Linda,

I just uploaded a new development gem (1.5.0.945) with a fix to this problem, which was intermittent.

http://wiki.openqa.org/display/WTR/Development+Builds

Bret

On 3/29/06, Linda Derezinski <[EMAIL PROTECTED]> wrote:
>
>            
>  
>
> We are using Watir with RubyFIT another developer wrote some tests which use XPath and I'm trying get them running on my system.  
>
>    
>
> I have ruby 1.8.2 installed from ruby182-15.exe  
>
> The version of watir which I started with was installed via gem install watir  
>
>    
>
> Searching through the list's archives it seemed that I needed to get the current cvs version and run install.rb which I did.  
>
>    
>
> The good news is that our tests no longer complain about missing XPath functions … the bad news is that I am seeing
>  
>    
>
> "The object invoked has disconnected from its clients."  
>
>    
>
> I am able to reproduce the same thing when running the xpath_tests.rb found in unitTests  
>
>    
>
> However if I run the xpath tests one by one I don't see the error.  Anyone know what is the difference here?  
>
>    
>
> These work:  
>
> buttons_xpath_test.rb  
>
> checkbox_xpath_test.rb  
>
> div_xpath_test.rb  
>
> filefield_xpath_test.rb  
>
> form_xpath_test.rb  
>
> images_xpath_test.rb  
>
> links_xpath_test.rb  
>
> radios_xpath_test.rb  
>
> selectbox_xpath_test.rb  
>
> tableCell_using_xpath_test.rb  
>
> table_xpath_test.rb  
>
> textAreafields_xpath_test.rb  
>
> textfields_xpath_test.rb  
>
>    
>
>    
>
> -Linda  
>
>          
> _______________________________________________
> 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