Paul, Thanks for looking. I think I'm just going to take out the attach method in most places (for now, anyway) and replace the methods I'm currently using with some new methods for the IE class.
John --- Paul Rogers <[EMAIL PROTECTED]> wrote: > the attach method is different to the new method ( > for creating a browser) > of watir as it uses the wshell object > > http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/objects/shell/windows.asp?frame=true > > I suspect, but couldnt find anything to really help, > that it is something to > do with that. > > ----- Original Message ----- > From: "John Fitisoff" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Monday, February 19, 2007 5:51 PM > Subject: [Wtr-general] Attach problem when remotely > running tests using > telnet > > > >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 > > > > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
