Thank you for the detailed report.
I think we may have suppressed these warnings post 1.4.1.
These warnings indicate that the different frames are being hosted from different machines, different ports or different protocols. I have provided background on this problem several times on this list. I really had been hoping that someone would step to trying to organize this kind of information for new users. This is definitely a frequently asked question.
Bret
On 2/20/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
Hi there, I just noticed something with our latest software build that has unexpectedly weirded out my Watir scripts.
I noticed that when I run my scripts, I get an error similar to the following now:
----
## End of test: Login
.
Finished in 9.706 seconds.
1 tests, 1 assertions, 0 failures, 0 errors
W, [20-Feb-2006 14:29:03#3276] WARN -- : frame error in waitdocument
OLE error code:80070005 in <Unknown>
Access is denied.
HRESULT error code:0x80020009
Exception occurred.
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `wait'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2014:in `click'
LD_1_Sign_In(wip).rb:71:in `test_Sign_In'
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:70:in `__send__'
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:70:in `run'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'
c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'
c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in `run_suite'
c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in `start_mediator'
c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:in `start'
c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in `run'
c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:194:in `run'
c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'
c:/ruby/lib/ruby/1.8/test/unit.rb:285
c:/ruby/lib/ruby/1.8/test/unit.rb:283
>Exit code: 0
----
(FYI: Line 71 in my script = $ie.button(:name, /LoginButton/).click )
I haven't changed anything in the scripts, so I figure it must be the app that has changed. I went to an IRB prompt and executed the following:
----
irb(main):006:0> ie.show_frames()
there are 4 frames
frame index: 1 --Access Denied--
frame index: 2 name: ContextTree
frame index: 3 name: MainWindow
frame index: 4 --Access Denied--
=> 0..3
----
That's interesting. I don't remember the "Access Denied" frames before. I pointed the browser to an older build and reran the same command:
----
irb(main):007:0> ie.show_frames ()
there are 4 frames
frame index: 1 name: LeftStatic
frame index: 2 name: ContextTree
frame index: 3 name: MainWindow
frame index: 4 name: RightStatic
=> 0..3
----
Okay, so I tried re-running the same script on this older build and it runs without error (as expected).
I asked one of the developers if there was a CSS change to the current build and he said that we're now loading the Left and Right frames dynamically instead of statically. I'm not really sure what that means, but I know something is breaking Ruby/Watir. (I'm running Watir 1.4.1 on Ruby 182-15.)
Technically, these 'warnings' don't interfere with the test scripts because they still work as expected. I just don't like the noise. Does anyone have any suggestions as to what would cause Ruby or Watir to fail to recognise the frame names like this?
Is there some way that I can suppress these warnings? Since I'm not trying to access these frames anyways, I'd rather not be bothered by them.
Paul.
_______________________________________________
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
