I think that this may be one of those "Doctor, it
hurts when I do that..." questions (where the answer
is: "then DON'T do that..."). But here goes...
I have a test framework and am using the attach method
pretty liberally throughout it. I'm using it in the
test login routine to close existing windows and to
provide navigation methods for some test classes:
w = Widget.new
w.widget_details_page
This works fine for normal use, but I'm trying to make
tests available to some of the engineers at our
company that aren't developing on Windows. If I use
telnet or SSH to log in to my system and then run the
same tests, the attach method starts to consistently
fail as shown below.
I've spent most of my time connecting via telnet. The
telnet service is set to interact with the desktop and
the user account I'm using has the appropriate
privileges (Administrator and User).
Even if I create two IE instances during the session
and then try to attach instance 1 to the browser
window for instance 2, I get the WIN32OLERuntimeError
error.
Anyone have any ideas? Is there something I'm missing?
The tests seem to be OK otherwise, it's just the
attach method that's causing problems...
Thanks...
John
1) Error:
test_01_CheckFoo(TC_01_CheckFoo):
WIN32OLERuntimeError: Windows
OLE error code:80040154 in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1600:in
`method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1600:in
`_find'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1632:in
`attach_browser_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:208:in
`until_with_timeout'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir/waiter.rb:53:in
`wait_until'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:208:in
`until_with_timeout'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1631:in
`attach_browser_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1512:in
`attach_init'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1505:in
`attach'
C:/eclipse/workspace/watir/ie/tests/foo/test_foo.rb:35:in
`test_01_CheckFoo'
1 tests, 0 assertions, 0 failures, 1 errors
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general